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

Method NewTimer

Rendering/OpenGL2/vtkOpenGLRenderTimerLog.cxx:244–256  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

242
243//------------------------------------------------------------------------------
244vtkOpenGLRenderTimer* vtkOpenGLRenderTimerLog::NewTimer()
245{
246 if (this->TimerPool.empty())
247 {
248 return new vtkOpenGLRenderTimer();
249 }
250 else
251 {
252 vtkOpenGLRenderTimer* result = this->TimerPool.front();
253 this->TimerPool.pop();
254 return result;
255 }
256}
257
258//------------------------------------------------------------------------------
259void vtkOpenGLRenderTimerLog::ReleaseTimer(vtkOpenGLRenderTimer* timer)

Callers 1

MarkStartEventMethod · 0.95

Calls 3

popMethod · 0.80
emptyMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected