module Timer:Timer modulesig..end
val get_ticks : unit -> intget_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 -> unitdelay 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.