MCPcopy Create free account
hub / github.com/Kitware/VTK / GetCPUTime

Method GetCPUTime

Common/System/vtkTimerLog.cxx:683–690  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

681
682//------------------------------------------------------------------------------
683double vtkTimerLog::GetCPUTime()
684{
685#ifndef _WIN32_WCE
686 return static_cast<double>(clock()) / static_cast<double>(CLOCKS_PER_SEC);
687#else
688 return 1.0;
689#endif
690}
691
692//------------------------------------------------------------------------------
693// Set the StartTime to the current time. Used with GetElapsedTime().

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64