MCPcopy Create free account
hub / github.com/apache/impala / WallTime_Now

Function WallTime_Now

be/src/gutil/walltime.cc:174–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174WallTime WallTime_Now() {
175#if defined(__APPLE__)
176 mach_timespec_t ts;
177 walltime_internal::GetCurrentTime(&ts);
178 return ts.tv_sec + ts.tv_nsec / static_cast<double>(1e9);
179#else
180 timespec ts;
181 clock_gettime(CLOCK_REALTIME, &ts);
182 return ts.tv_sec + ts.tv_nsec / static_cast<double>(1e9);
183#endif // defined(__APPLE__)
184}
185
186
187void StringAppendStrftime(string* dst,

Callers 14

VerifyTokenSignatureMethod · 0.85
MakeIncompatibleTokenFunction · 0.85
TEST_FFunction · 0.85
ImportKeysMethod · 0.85
GenerateAuthzTokenMethod · 0.85
GenerateAuthnTokenMethod · 0.85
IsCurrentKeyValidMethod · 0.85
CheckNeedKeyMethod · 0.85
AddKeyMethod · 0.85
TryRotateKeyMethod · 0.85
TEST_PFunction · 0.85
DumperThreadMethod · 0.85

Calls 1

GetCurrentTimeFunction · 0.85

Tested by 4

MakeIncompatibleTokenFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
DumperThreadMethod · 0.68