Module Brr_note_kit.Time
Monotonic time.
Time span
Passing time
val elapsed : unit -> span
elapsed ()
is the number of seconds elapsed since the beginning of the program.
Tick events
val tick : span -> span Note.event
tick span
is an event that occurs once inspan
seconds with the valuespan - span'
wherespan'
is the actual delay performed by the system.Note. Since the system may introduce delays you cannot assume that two different calls to
tick
will necessarily yield two non-simultaneous events.
val delay : span -> (unit -> unit) -> unit
delay span f
callsf
afterspan
seconds.
Counters
val counter : unit -> counter
counter ()
is a counter counting time from call time on.