Go to the documentation of this file.
31 #ifndef vtkOpenGLRenderTimer_h
32 #define vtkOpenGLRenderTimer_h
34 #include "vtkRenderingOpenGL2Module.h"
151 #endif // vtkOpenGLRenderTimer_h
bool Ready()
Returns true when the timing results are available.
float GetReusableElapsedSeconds()
float GetElapsedMilliseconds()
vtkTypeUInt64 GetElapsedNanoseconds()
void Stop()
Mark the end of a timed event.
void ReleaseGraphicsResources()
Simply calls Reset() to ensure that query ids are freed.
Asynchronously measures GPU execution time for a single event.
bool Started()
Returns true if the timer has been started.
vtkTypeUInt64 GetStopTime()
If Ready() returns true, return the start or stop time in nanoseconds.
void Reset()
Clear out any previous results and prepare for a new query.
void Start()
Mark the start of a timed event.
bool Stopped()
Returns true if the timer has been stopped.
void ReusableStart()
This class can also be used in a reusable manner where the start and stop events stay in flight until...
vtkTypeUInt64 GetStartTime()
If Ready() returns true, return the start or stop time in nanoseconds.
float GetElapsedSeconds()
If Ready() returns true, get the elapsed time in the requested units.
static bool IsSupported()
Returns true if timer events are supported by the current OpenGL implementation.