v2025.6.2
All Bundles

Timer

SDL time management routines

Operations

Delay

Wait a specified number of milliseconds before returning

function : Delay(ms:Int) ~ Nil

Parameters

NameTypeDescription
msIntnumber of milliseconds to delay

GetTicks

Get the number of milliseconds since the SDL library initialization

function : GetTicks() ~ Int

Return

TypeDescription
Intvalue representing the number of milliseconds since the SDL library initialized

Passed

Compares SDL ticks values

function : 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