Time Module

From SolarStrike wiki
Revision as of 19:23, 8 August 2014 by Elverion (talk | contribs)
Jump to: navigation, search

getNow()

int64 time.getNow()

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


deltaTime()

number time.deltaTime()

Returns the deltaTime for the current logic cycle


diff()

number time.diff(int64 t2, int64 t1)

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