Home

Timer

SDL time management routines

Operations

Delay

Wait a specified number of milliseconds before returning

function : public : Delay(ms:Int) ~ Nil
Parameters
NameTypeDescription
msIntnumber of milliseconds to delay

GetTicks

Get the number of milliseconds since the SDL library initialization

function : public : GetTicks() ~ Int
Return
TypeDescription
Intvalue representing the number of milliseconds since the SDL library initialized

Passed

Compares SDL ticks values

function : public : Passed(a:Int, b:Int) ~ Bool
Parameters
NameTypeDescription
aIntthe first ticks values
bIntthe second ticks values

Return
TypeDescription
Booltrue if A has passed B, false otherwise