TimerA value of type timer is one of
incr n zero, in which case the timer is called finite,forever, in which case the timer is called infinite.The interface exposes methods for constructing timers and observing their behavior over finite intervals. By design, it is not possible to observe that a timer is infinite.
val zero : timerA finished timer.
Increment the number of ticks left by n, and return the result.
Raises Invalid_argument if n is negative.
Decrement the number of ticks left by n. Returns
Error m if the timer has m ticks left and m < n,Ok t where t is the new timer.Raises Invalid_argument if n is negative.
val forever : timerThe timer that never finishes.