MCPcopy Create free account
hub / github.com/VKCOM/kphp / cycleclock_freq

Function cycleclock_freq

common/cycleclock.h:43–53  ·  view source on GitHub ↗

* x86 timestamp counter ticks with the same frequency as CPU core does. * However, ARM platforms have a dedicated timer instead with its own * frequency (cntfrq_el0 returns 25MHz on an ARM KVM guest). * This leads us to *sigh* issues with precise-time caching since its * TTL is tied to a specific number of ticks spent. "cycleclock_freq" is * needed to shift TSC value, so it approximates whate

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

precise-time.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected