Public Types | |
nanoseconds | |
microseconds | |
milliseconds | |
seconds | |
enum | ReturnType { nanoseconds, microseconds, milliseconds, seconds } |
Public Member Functions | |
PipeTimer () | |
void | setReturnType (ReturnType r) |
ReturnType | getReturnType () |
GLuint | genQuery () |
void | deleteQuery (GLuint *) |
void | genQueries (unsigned int n, GLuint *) |
void | deleteQueries (unsigned int n, GLuint *) |
void | begin (GLuint query) |
void | end () |
double | getElapsedTime (GLuint query) |
double | getElapsedTime (GLuint query, double &waitTime) |
Static Public Member Functions | |
static PipeTimer * | instance () |
Static Public Attributes | |
static PipeTimer * | _thePipeTimer |
Protected Member Functions | |
virtual | ~PipeTimer () |
Producer::PipeTimer::PipeTimer | ( | ) |
virtual Producer::PipeTimer::~PipeTimer | ( | ) | [inline, protected, virtual] |
void Producer::PipeTimer::begin | ( | GLuint | query | ) |
void Producer::PipeTimer::deleteQueries | ( | unsigned int | n, | |
GLuint * | ||||
) |
void Producer::PipeTimer::deleteQuery | ( | GLuint * | ) |
void Producer::PipeTimer::end | ( | ) |
void Producer::PipeTimer::genQueries | ( | unsigned int | n, | |
GLuint * | ||||
) |
GLuint Producer::PipeTimer::genQuery | ( | ) |
double Producer::PipeTimer::getElapsedTime | ( | GLuint | query, | |
double & | waitTime | |||
) |
double Producer::PipeTimer::getElapsedTime | ( | GLuint | query | ) |
ReturnType Producer::PipeTimer::getReturnType | ( | ) |
static PipeTimer* Producer::PipeTimer::instance | ( | ) | [inline, static] |
void Producer::PipeTimer::setReturnType | ( | ReturnType | r | ) |
PipeTimer* Producer::PipeTimer::_thePipeTimer [static] |