Lore archive · Warcraft Wiki, 2023 dump
API GetBattleFieldInstanceRunTime
Last wiki revision 2020-01-08
Returns the time in ms since the current battlefield has opened. battlefieldRunTime = GetBattleFieldInstanceRunTime
- battlefieldRunTime : Number - the time in ms since the current battlefield has opened or zero if you are not in any battleground.
Whenever you enter a battleground, WoW retrieves the start-time from the server and saves a DWORD-value at 0x1129334 containing the time between system startup of the user and battleground start. This function simply gets the time between system startup and now and substracts that saved value from it. The windows client calls GetTickCount to get those times, see: MSDN WinAPI reference
Source
https://warcraft.wiki.gg/wiki/API_GetBattleFieldInstanceRunTime · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.