MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / hrtime

Function hrtime

tools/cdb2_sqlreplay/cdb2_sqlreplay.cpp:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371int64_t hrtime() {
372 struct timeval t;
373 int rc = gettimeofday(&t, nullptr);
374 if (rc) {
375 perror("gettimeofday");
376 return 0;
377 }
378 return t.tv_sec * 1000000 + t.tv_usec;
379}
380
381bool within_threshold(int64_t val1, int64_t val2, int percent) {
382 if (percent == 0)

Callers 1

replayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected