WoW:API GetTime: Difference between revisions
Jump to navigation
Jump to search
GetTime -Documentation by Zlixar-
(getTime() elaboration) |
(Reversed previous two edits, since they contained incorrect information) |
||
Line 1: | Line 1: | ||
<center>'''GetTime''' ''-Documentation by [[user:Zlixar|Zlixar | <center>'''GetTime''' ''-Documentation by [[user:Zlixar|Zlixar]]-''</center> | ||
When called, returns the | When called, returns the current system uptime in seconds. | ||
seconds = GetTime(); | |||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
Line 9: | Line 9: | ||
;''Returns'' | ;''Returns'' | ||
:; | :;seconds : Floating Point Number - The current system uptime in seconds. | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
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. | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 16:09, 23 September 2005
When called, returns the current system uptime in seconds.
seconds = GetTime();
- Arguments
- None
- Returns
- seconds
- Floating Point Number - The current system uptime in seconds.
- Example
seconds = GetTime(); print("Current system uptime is: "..seconds.." seconds!");
- Result
Current system uptime is: 60123 seconds!
- 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 GetTickCount(), divided by 1000.