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

Method logTimeOffset

flow/Net2.actor.cpp:1383–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383ACTOR Future<Void> Net2::logTimeOffset() {
1384 loop {
1385 double processTime = timer_monotonic();
1386 double systemTime = timer();
1387 TraceEvent("ProcessTimeOffset")
1388 .detailf("ProcessTime", "%lf", processTime)
1389 .detailf("SystemTime", "%lf", systemTime)
1390 .detailf("OffsetFromSystemTime", "%lf", processTime - systemTime);
1391 wait(::delay(FLOW_KNOBS->TIME_OFFSET_LOGGING_INTERVAL));
1392 }
1393}
1394
1395void Net2::initMetrics() {

Callers

nothing calls this directly

Calls 4

timer_monotonicFunction · 0.85
TraceEventClass · 0.85
delayFunction · 0.85
timerFunction · 0.70

Tested by

no test coverage detected