MCPcopy Create free account
hub / github.com/Atarity/Lightpack / howLongItEnd

Method howLongItEnd

Software/src/TimeEvaluations.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59double TimeEvaluations::howLongItEnd()
60{
61 struct timeval tv;
62 if(gettimeofday(&tv, 0) < 0){
63 qWarning() << "howLongItEnd(): Error gettimeofday()";
64 return -1;
65 }else{
66 double now = ((tv.tv_sec % 1000) * 1000.0 + tv.tv_usec / 1000.0);
67 double dt_ms = now - this->timevalue_ms;
68 this->timevalue_ms = -1;
69 return dt_ms;
70 }
71}

Callers 1

handleGrabbedColorsMethod · 0.80

Calls 1

gettimeofdayFunction · 0.85

Tested by

no test coverage detected