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

Function Seconds

util/system/datetime.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75ui32 Seconds() noexcept {
76 struct timeval tv;
77 gettimeofday(&tv, nullptr);
78 return tv.tv_sec;
79}
80
81void NanoSleep(ui64 ns) noexcept {
82#if defined(_win_)

Callers 15

RunBasicsMethod · 0.70
RunSyncronizeMethod · 0.70
ProcessMethod · 0.70
Y_UNIT_TESTFunction · 0.70
Y_UNIT_TESTFunction · 0.70
WaitImplMethod · 0.50
CloseMethod · 0.50
WaitMethod · 0.50
DoIoSleepFunction · 0.50
DoMainFunction · 0.50

Calls 1

gettimeofdayFunction · 0.85

Tested by 3

TestEventQueueMethod · 0.40
TestOverrideTimeMethod · 0.40