Time Module
From SolarStrike wiki
Revision as of 19:22, 8 August 2014 by Elverion (talk | contribs) (Elverion moved page Timer Module to Time Module without leaving a redirect)
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.