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

Method getCurrentTime

flow/Trace.cpp:1306–1316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1304}
1305
1306double BaseTraceEvent::getCurrentTime() {
1307 if (g_trace_clock.load() == TRACE_CLOCK_NOW) {
1308 if (!isNetworkThread() || !g_network) {
1309 return timer_monotonic();
1310 } else {
1311 return now();
1312 }
1313 } else {
1314 return timer();
1315 }
1316}
1317
1318// converts the given flow time into a string
1319// with format: %Y-%m-%dT%H:%M:%S

Callers

nothing calls this directly

Calls 4

timer_monotonicFunction · 0.85
nowFunction · 0.85
timerFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected