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

Function GetCyclesPerMillisecond

util/datetime/cputimer.cpp:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44ui64 GetCyclesPerMillisecond() {
45 return GetCyclesPerSecond() / 1000;
46}
47
48TDuration CyclesToDuration(ui64 cycles) {
49 return TDuration::MicroSeconds(cycles * 1000000 / GetCyclesPerSecond());

Callers 1

FormatCyclesFunction · 0.85

Calls 1

GetCyclesPerSecondFunction · 0.85

Tested by

no test coverage detected