MCPcopy Create free account
hub / github.com/catboost/catboost / GetCyclesPerSecond

Function GetCyclesPerSecond

util/datetime/cputimer.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30static ui64 ManuallySetCyclesPerSecond = 0;
31
32static ui64 GetCyclesPerSecond() {
33 if (ManuallySetCyclesPerSecond != 0) {
34 return ManuallySetCyclesPerSecond;
35 } else {
36 return NHPTimer::GetCyclesPerSecond();
37 }
38}
39
40void SetCyclesPerSecond(ui64 cycles) {
41 ManuallySetCyclesPerSecond = cycles;

Callers 6

GetMicrosecondsToTicksFunction · 0.85
GetCyclesPerMillisecondFunction · 0.85
CyclesToDurationFunction · 0.85
CyclesToDurationSafeFunction · 0.85
DurationToCyclesFunction · 0.85
DurationToCyclesSafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected