MCPcopy Create free account
hub / github.com/catboost/catboost / ~TTimeLogger

Method ~TTimeLogger

util/datetime/cputimer.cpp:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140TTimeLogger::~TTimeLogger() {
141 time_t tim = time(nullptr);
142 ui64 endCycles = GetCycleCount();
143 if (Verbose) {
144 const char* prefix = (OK) ? "" : "!";
145 fprintf(stderr, "%s%s ended: %.24s (%lu) (%d) (took %lus = %s)\n",
146 prefix, Message.data(), ctime(&tim), (unsigned long)tim, (int)getpid(),
147 (unsigned long)tim - (unsigned long)Begin, FormatCycles(endCycles - BeginCycles).data());
148 fprintf(stderr, "%s=========================================================\n", prefix);
149 }
150}

Callers

nothing calls this directly

Calls 4

GetCycleCountFunction · 0.85
FormatCyclesFunction · 0.85
getpidFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected