WoW:API GetTime

From AddOn Studio
Revision as of 23:02, 18 January 2005 by WoWWiki>Zlixar
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetTime -Documentation by Zlixar-

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
This is relatively unconfirmed, though experimentation on my part has failed to find any fault in this correlation. It may, however, be possible that this tracks something such as current session uptime (as opposed to total system uptime). Any confirmation or corrections appreciated ^.^

Template:WoW API