MCPcopy Create free account
hub / github.com/MariaDB/server / gettimeofday_double

Function gettimeofday_double

plugin/handler_socket/client/hstest.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90namespace {
91
92double
93gettimeofday_double()
94{
95 struct timeval tv;
96 if (gettimeofday(&tv, 0) != 0) {
97 fatal_abort("gettimeofday");
98 }
99 return static_cast<double>(tv.tv_usec) / 1000000 + tv.tv_sec;
100}
101
102// unused
103void

Callers 6

test_6Method · 0.70
test_7Method · 0.70
test_9Method · 0.70
test_10Method · 0.70
test_watchMethod · 0.70
test_22Method · 0.70

Calls 2

gettimeofdayFunction · 0.85
fatal_abortFunction · 0.85

Tested by

no test coverage detected