MCPcopy Create free account
hub / github.com/apple/foundationdb / timer

Method timer

fdbrpc/sim2.actor.cpp:894–897  ·  view source on GitHub ↗

timer() can be up to 0.1 seconds ahead of now()

Source from the content-addressed store, hash-verified

892
893 // timer() can be up to 0.1 seconds ahead of now()
894 double timer() override {
895 timerTime += deterministicRandom()->random01() * (time + 0.1 - timerTime) / 2.0;
896 return timerTime;
897 }
898
899 double timer_monotonic() override { return timer(); }
900

Calls 2

deterministicRandomFunction · 0.85
random01Method · 0.80

Tested by

no test coverage detected