Wikia

WoWWiki

API GetTime

Talk3
101,388pages on
this wiki
Revision as of 03:28, December 30, 2008 by Quezacolt (Talk | contribs)

WoW API < GetTime

Returns the system uptime of your computer in seconds, with millisecond precision.

seconds = GetTime();

Parameters

Arguments

None

Returns

seconds 
Floating Point Number - The current system uptime in seconds.

Example

seconds = GetTime();
print("Current system uptime is: "..seconds.." seconds!");

> Current system uptime is: 60123.558 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 time since your own computer booted up.
In Windows, this is gotten through the Windows kernel function GetTickCount(), divided by 1000.

Around Wikia's network

Random Wiki