SetClockCounter
function · core · primitive
- Address
0x42b8b0· 178 bytes, up to0x42b961- Signature
void __thiscall (void *this, uint32_t mode)- Meaning
- Switches the clock counter, scale 1000 over its rate and offset keeping the time continuous
- Confidence
- verified, proof two
- Finding
- core/time#counter-switch
Finding: Counter switch in core: time
0x42b8b0 changes the counter mode keeping the clock continuous: with c0 the old counter and c1
the new one read at once, the new scale is (1.0 / rate) · 1000, each step rounded at 53 bits, and
the new offset (c0 · old scale + old offset) − c1 · new scale, with c0 and c1 rounded to
doubles first. It does nothing when the processor flag at +0x20 of the time manager is set: that
flag is the multi-core bit (Multi-core gate).
The derivation is in the doc.
Callers 2
Callees 2
- OsGetClockCounter core
- OsGetClockCounterRate core
Calls and jumps by a bare address, from tables/calls.tsv.