WoW:API GetTime: Difference between revisions
Jump to navigation
Jump to search
(Reversed previous two edits, since they contained incorrect information) |
(removed incorrect information) |
||
| Line 1: | Line 1: | ||
When called, '''GetTime''' returns current time in seconds: | |||
seconds = GetTime(); | seconds = GetTime(); | ||
: | ;Arguments: | ||
: none | |||
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. | |||
{{Template:WoW API}} | {{Template:WoW API}} | ||
Revision as of 16:20, 23 September 2005
When called, GetTime returns current time in seconds:
seconds = GetTime();
- Arguments
- none
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 GetTickCount(), divided by 1000.