Time Module

From SolarStrike wiki
Revision as of 16:30, 28 June 2014 by Elverion (talk | contribs) (Created page with "== getNow() == '''int64 timer.getNow()''' Returns the current high-precision time as an int64 table. == deltaTime() == '''number timer.deltaTime()''' Returns the deltaTime...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

getNow()

int64 timer.getNow()

Returns the current high-precision time as an int64 table.


deltaTime()

number timer.deltaTime()

Returns the deltaTime for the current logic cycle


diff()

number timer.diff(int64 t2, int64 t1)

Compares two high-precision time values (from timer.getNow()) and returns the amount of time that has elapsed between them in seconds.