MCPcopy Create free account
hub / github.com/apache/thrift / frame

Method frame

lib/cpp/test/Benchmark.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 void start() { THRIFT_GETTIMEOFDAY(&vStart, nullptr); }
41
42 double frame() {
43 timeval vEnd;
44 THRIFT_GETTIMEOFDAY(&vEnd, nullptr);
45 double dstart = vStart.tv_sec + ((double)vStart.tv_usec / 1000000.0);
46 double dend = vEnd.tv_sec + ((double)vEnd.tv_usec / 1000000.0);
47 return dend - dstart;
48 }
49};
50
51int main() {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected