Time Module

From SolarStrike wiki
Revision as of 03:50, 18 February 2015 by Elverion (talk | contribs)
Jump to: navigation, search

getNow

number time.getNow()

Returns the current high-precision time as an int64.


deltaTime

number time.deltaTime()

Returns the deltaTime (amount of time in seconds [including fractions] since last cycle) for the current logic cycle


diff

number time.diff(number t2, number t1)

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