27#ifndef EASY3D_RENDERER_OPENGL_TIMER_H
28#define EASY3D_RENDERER_OPENGL_TIMER_H
91 unsigned int query_id_;
bool is_running() const
Check if the timer is running.
Definition opengl_timer.h:76
double time()
Get the GPU time consumed since the last start.
Definition opengl_timer.cpp:68
OpenGLTimer(bool start_timing=true)
Constructor.
Definition opengl_timer.cpp:37
void start()
Start the timer. The next OpenGL call will be the first timed.
Definition opengl_timer.cpp:55
void stop()
Stop the timer. The previous OpenGL call will be the last timed.
Definition opengl_timer.cpp:62
virtual ~OpenGLTimer()
Destructor.
Definition opengl_timer.cpp:48
Definition collider.cpp:182