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

Function ThreadCPUSystemTime

util/system/datetime.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51ui64 ThreadCPUSystemTime() noexcept {
52#if defined(_win_)
53 FILETIME creationTime, exitTime, kernelTime, userTime;
54 GetThreadTimes(GetCurrentThread(), &creationTime, &exitTime, &kernelTime, &userTime);
55 return ToMicroSeconds(kernelTime);
56#else
57 return 0;
58#endif
59}
60
61ui64 ThreadCPUTime() noexcept {
62#if defined(_win_)

Callers

nothing calls this directly

Calls 1

ToMicroSecondsFunction · 0.85

Tested by

no test coverage detected