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

Function GetInstant

library/cpp/yt/cpu_clock/clock.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65TInstant GetInstant()
66{
67 auto cpuInstant = GetCpuInstant();
68 auto state = GetCalibrationState(cpuInstant);
69 YT_ASSERT(cpuInstant >= state.CpuInstant);
70 return state.Instant + CpuDurationToDuration(cpuInstant - state.CpuInstant, GetTicksToMicroseconds());
71}
72
73TDuration CpuDurationToDuration(TCpuDuration cpuDuration)
74{

Callers

nothing calls this directly

Calls 3

GetCalibrationStateFunction · 0.85
CpuDurationToDurationFunction · 0.85
GetTicksToMicrosecondsFunction · 0.85

Tested by

no test coverage detected