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

Method FmtTime

library/cpp/testing/benchmark/bench.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 static inline TString FmtTime(double t) {
128 if (t < 0.5) {
129 t = 0.0;
130 }
131
132 TString hr;
133 if (t > 10 * 1000) {
134 hr = " (" + ToString(HumanReadableSize(t, ESizeFormat::SF_QUANTITY)) + ")";
135 }
136
137 return ToString(t) + hr + " cycles";
138 }
139
140 const ui64 N = GetCycleCount();
141 };

Callers

nothing calls this directly

Calls 2

HumanReadableSizeFunction · 0.85
ToStringFunction · 0.50

Tested by

no test coverage detected