Fandom

WoWWiki

API GetTime

104,634pages on
this wiki
Add New Page
Talk3 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetTime

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

seconds = GetTime();

ParametersEdit

ArgumentsEdit

None

ReturnsEdit

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

ExampleEdit

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

> Current system uptime is: 60123.558 seconds!

DetailsEdit

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 acquired through the Windows kernel function GetTickCount(), divided by 1000.

Also on Fandom

Random Wiki