benilla-re systems structs docs

GetWallClockSeconds

function · core · orchestration

Address
0x429580 · 126 bytes, up to 0x4295fd
Signature
uint32_t __cdecl (void)
Meaning
Returns the local machine time in whole seconds, resampled at most every 500 ms
Confidence
verified, proof one
Finding
ui/questtimers#the-clock

Finding: The clock in ui: quest timers

A timed quest's third slot dword is an expiry in the server's epoch seconds. The time left is timer + G - now - 1, with now the local machine's wall clock in whole seconds (a clock call cached for 500 ms) and G the offset stored by the last time sync, local minus server. So the epoch is the server's and the advance between syncs is the player's own clock. An expiry N seconds ahead reads N - 1, the last second 0; after a sync whose difference is 0, G is 1 and it reads N.

The derivation is in the doc.

Callers 12

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.