MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getTimeSinceCreation

Method getTimeSinceCreation

Engine/Timer.cpp:310–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310double
311TimeLapse::getTimeSinceCreation() const
312{
313 timeval now;
314
315 gettimeofday(&now, 0);
316
317 double dt = now.tv_sec - constructorTime.tv_sec +
318 (now.tv_usec - constructorTime.tv_usec) * 1e-6f;
319
320 return dt;
321}
322
323TimeLapseReporter::TimeLapseReporter(const std::string& message)
324 : message(message)

Callers 5

renderHandlerMethod · 0.80
notifyFrameRenderedMethod · 0.80
renderViewer_internalMethod · 0.80
getStatsMethod · 0.80
updateProgressBarMethod · 0.80

Calls 1

gettimeofdayFunction · 0.70

Tested by

no test coverage detected