Add clock.interval function.