elapse = GetBattlefieldInstanceRunTime() / 1000
print(elapse)
Returns == 0
Within the TBC battlefield, GetBattlefield InvestmentRunTime() seems to often return 0, failing to properly return to the battlefield’s run time
Occasionally it can be returned correctly, but after a while it will return to 0
For joining a battlefield where a battle is going on, his return is always 0
C_PvP.GetActiveMatchDuration and GetBattlefieldInstanceRunTime
Starting from 8.2 both API calls randomly fail and return 0 entire duration of battleground or arena.
GitHub - tg123/BattleInfo: Enrich your battleground information