| 1304 | } |
| 1305 | |
| 1306 | double 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 |
nothing calls this directly
no test coverage detected