benilla-re systems structs docs

OsGetClockTicksPerSecond

function · core · primitive

Address
0x42c020 · 17 bytes, up to 0x42c030
Signature
uint32_t __cdecl (void)
Meaning
Returns trunc(1000 / 0x8332c8), the clock counter's ticks per second
Confidence
verified, proof one
Finding
core/time#counter-rate

Finding: Counter rate in core: time

0x42c020 returns trunc(1000 / scale): the counter's ticks per second while the clock runs on the time-stamp counter, and 1000 while it runs on GetTickCount. debugprofilestop divides a time-stamp counter difference by a thousandth of it, so it answers milliseconds only after the switch, and raw counter ticks on a multi-core processor.

The derivation is in the doc.

Callers 2

Callees 1

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