MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / gettimeofday_double

Function gettimeofday_double

client/hslongrun.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78double
79gettimeofday_double()
80{
81 struct timeval tv = { };
82 if (gettimeofday(&tv, 0) != 0) {
83 fatal_abort("gettimeofday");
84 }
85 return static_cast<double>(tv.tv_usec) / 1000000 + tv.tv_sec;
86}
87
88struct record_value {
89 mutex lock;

Callers

nothing calls this directly

Calls 1

fatal_abortFunction · 0.85

Tested by

no test coverage detected