module Timer: sig
.. end
Timer module
val get_ticks : unit -> int
get_ticks -> milliseconds
Returns the number of milliseconds since SDL library initialization. Note that this value wraps around
if the program runs for more than ~49.7 days.
val delay : int -> unit
delay milliseconds
Wait a specified number of milliseconds before returning.
delay
will wait at least the specified time, but possible longer due to OS scheduling.
Note: Count on a delay granularity of at least 10 ms. Some platforms have shorter clock ticks but this is the most common.