8 #ifndef GlobeEngine_Timer_h
9 #define GlobeEngine_Timer_h
12 #include "OpenGL_Includes.h"
24 void create(
bool _showAsFPS =
false);
28 void start(std::string _inTitle);
30 void stop(std::string _outTitle);
58 GLuint64* timerResult;
62 GLuint singleAsyncQuery;
63 GLuint64 singleAsyncResult;
72 double elapsedTimeCTimer;
void startGPUClock()
Definition: Timer.cpp:87
void setTimestampForQuery(int _id)
Definition: Timer.cpp:124
void start()
Definition: Timer.cpp:35
GLint64 stopAndShowGPUClock(std::string _outTitle="")
Definition: Timer.cpp:97
double getElapsedTime()
Definition: Timer.cpp:66
~Timer()
Definition: Timer.cpp:15
const GLuint64 * getAllResults(int _id)
Definition: Timer.cpp:141
void stopGPUClock()
Definition: Timer.cpp:92
void clear()
Definition: Timer.cpp:21
void create(bool _showAsFPS=false)
Definition: Timer.cpp:30
void generateTimerQuery(int _count)
Definition: Timer.cpp:115
void stopSingleAsynchronousQuery()
Definition: Timer.cpp:163
GLuint64 getResult(int _id)
Definition: Timer.cpp:134
Definition: AvalancheTrainingSimulationEngine.h:28
void stopAndRestart(std::string _outTitle)
Definition: Timer.cpp:70
GLint64 getSingleAsynchronousQueryResult()
Definition: Timer.cpp:168
bool isRunning()
Definition: Timer.cpp:78
int getQueryCount()
Definition: Timer.cpp:151
Timer()
Definition: Timer.cpp:8
void stop()
Definition: Timer.cpp:41
void startSingleAsynchronousQuery()
Definition: Timer.cpp:157