From ESOUI Wiki
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.
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!")