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

Function time_diff

lib/cpp/test/TFileTransportTest.cpp:154–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154int time_diff(const struct timeval* t1, const struct timeval* t2) {
155 return (t2->tv_usec - t1->tv_usec) + (t2->tv_sec - t1->tv_sec) * 1000000;
156}
157
158/**************************************************************************
159 * Test cases

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
test_flush_max_us_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected