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

Function ThreadCPUUserTime

util/system/datetime.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41ui64 ThreadCPUUserTime() noexcept {
42#if defined(_win_)
43 FILETIME creationTime, exitTime, kernelTime, userTime;
44 GetThreadTimes(GetCurrentThread(), &creationTime, &exitTime, &kernelTime, &userTime);
45 return ToMicroSeconds(userTime);
46#else
47 return 0;
48#endif
49}
50
51ui64 ThreadCPUSystemTime() noexcept {
52#if defined(_win_)

Callers

nothing calls this directly

Calls 1

ToMicroSecondsFunction · 0.85

Tested by

no test coverage detected