GetGameTimeSeconds
ESO Lua API function — used by 85 of the 3,030 addons we indexed (combined 36,332,290 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetGameTimeSeconds()Returns: number gameTimeInSeconds
Real usage — from Combat Metrics
Log("calc", LOG_LEVEL_DEBUG, "Start end routine")
local scalcms = GetGameTimeSeconds()
CombatMetrics_Report_TitleFightTitleName:SetText(GetString(SI_COMBAT_METRICS_FINALIZING))Short excerpt from the shipping addon Combat Metrics — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Combat Metrics | 7,085,289 |
| Action Duration Reminder | 6,522,011 |
| LibCombat | 5,017,654 |
| AwesomeGuildStore | 4,722,462 |
| Votan's Minimap | 4,211,718 |
| HodorReflexes - DPS & ULT tracker | 3,446,840 |