Repeat a function at n interval and stop at s seconds

Repeat function is now in benchmark package