Time Module: Difference between revisions
From SolarStrike wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
== getNow() == | == getNow() == | ||
''' | '''number time.getNow()''' | ||
Returns the current high-precision time as an int64 | Returns the current high-precision time as an int64. | ||
| Line 8: | Line 8: | ||
'''number time.deltaTime()''' | '''number time.deltaTime()''' | ||
Returns the deltaTime for the current logic cycle | Returns the deltaTime (amount of time in seconds [including fractions] since last cycle) for the current logic cycle | ||
== diff() == | == diff() == | ||
'''number time.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. | Compares two high-precision time values (from time.getNow()) and returns the amount of time that has elapsed between them in seconds. | ||
Revision as of 23:39, 21 January 2015
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.