WoW:API GetTime: Difference between revisions

m
Indentation Error.
m (adjusted example)
m (Indentation Error.)
Line 1: Line 1:
<center>'''GetTime''' ''-Documentation by [[user:Zlixar|Zlixar]]-''</center>
<center>'''GetTime''' ''-Documentation by [[user:Zlixar|Zlixar]], updated by [[user:Thorarin|Thorarin]]-''</center>
When called, returns the current system uptime in seconds, with millisecond precision.
When called, returns the current system uptime in seconds, with millisecond precision.
  seconds = GetTime();
  seconds = GetTime();
Line 18: Line 18:
----
----
;''Details''
;''Details''
:Contrary to what some believe, this does not return your current session time, time since launching the game, or time since the last patch. It returns the uptime as reported by the Windows kernel function [http://msdn.microsoft.com/library/en-us/sysinfo/base/gettickcount.asp GetTickCount()], divided by 1000.
:Contrary to what some believe, this does not return your current session time, time since launching the game, or time since the last patch. It returns the system uptime in seconds.
 
:In Windows, this is reported as the Windows kernel function [http://msdn.microsoft.com/library/en-us/sysinfo/base/gettickcount.asp GetTickCount()], divided by 1000.


{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user