GetGameTimeMilliseconds

From ESOUI Wiki

Jump to: navigation, search

This function returns the total time that the in-game engine has been running, across all character logins for this run of the client. Loading screens seem to be included too. Time on Character selection page and earlier stages of client seem to be ignored.

Example

local function someOperation()
   --
   -- ... some code here ...
   --
end
 
local begin  = GetGameTimeMilliseconds()
for i = 1, 5000000 do
   someOperation()
end
local finish = GetGameTimeMilliseconds()
 
local time = finish - begin
d("It took " .. time .. " milliseconds to do the thing 5,000,000 times!")

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox