Difference between revisions of "SysTime"

From Wiki
Jump to: navigation, search
 
m
Line 22: Line 22:
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px | [[Var_Date|#date]] || Width=200px | [[Var_time|#time]] || Width=200px | [[Var_sCnt|#sCnt]] || Width=200px | [[Var_sCnt2|#sCnt2]]
+
| Width=200px | [[Var_date|#date]] || Width=200px | [[Var_time|#time]] || Width=200px | [[Var_sCnt|#sCnt]] || Width=200px | [[Var_sCnt2|#sCnt2]]
 
|}
 
|}
 
----
 
----

Revision as of 17:44, 10 August 2005

#sysTime

Miscellaneous System Variables

Description

Represents the time passed since 01/Jan/1980 UTC (it is timezone independant) in millisecond increments. It can be useful for timing and time calculations. it is also not affected by overflow issues or speedhack tools.

Example


set %startTime #sysTime
for %testLoop 1 1000
{
  set %testCnt %testCnt + 1
}
set %endTime %startTime - #sysTime
Display ok time elapsed in milliseconds: , #spc , %endTime
halt

See Also

#date #time #sCnt #sCnt2

Main_Page Documentation Miscellaneous System Variables