MCPcopy Create free account
hub / github.com/SIPp/sipp / computeDiffTimeInMs

Method computeDiffTimeInMs

src/stat.cpp:1517–1525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1515} /* end of formatTime */
1516
1517long CStat::computeDiffTimeInMs (struct timeval* tf, struct timeval* ti)
1518{
1519 long v1, v2;
1520
1521 v1 = tf->tv_sec - ti->tv_sec;
1522 v2 = tf->tv_usec - ti->tv_usec;
1523 if (v2 < 0) v2 += 1000000, v1--;
1524 return (v1*1000 + v2/1000);
1525}
1526
1527CSample::~CSample()
1528{

Callers 1

draw_stats_screenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected