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

Method GetBase

util/system/fasttime.cpp:202–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201 private:
202 inline TTime GetBase() {
203 const TTime x = Rdtsc();
204
205 if (TimeToSync(x)) {
206 const TTime y = Time();
207
208 P_.Add(x, y);
209
210 return y;
211 }
212
213 if (P_.Enough()) {
214 return P_.Predict(x);
215 }
216
217 return Time();
218 }
219
220 inline bool TimeToSync(TTime x) {
221 if (x > Next_) {

Callers

nothing calls this directly

Calls 4

EnoughMethod · 0.80
TimeFunction · 0.50
AddMethod · 0.45
PredictMethod · 0.45

Tested by

no test coverage detected