Class for measuring elapsed time with high resolution. More...
#include <Inventor/SbElapsedTime.h>
Public Member Functions | |
SbElapsedTime () | |
void | reset () |
double | getElapsed () const |
SbTime | getElapsedTime () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SbElapsedTime &t) |
This measures elapsed time in seconds. It uses the highest resolution timer available on the system, to allow measuring very short intervals. There is no guarantee the timer resolution will be better than SbTime (which is used if no better method is available).
SbElapsedTime::SbElapsedTime | ( | ) |
Constructor (initializes timer).
double SbElapsedTime::getElapsed | ( | ) | const |
Gets elapsed time in seconds.
SbTime SbElapsedTime::getElapsedTime | ( | ) | const |
Gets elapsed time.
void SbElapsedTime::reset | ( | ) |
Resets timer.
std::ostream& operator<< | ( | std::ostream & | os, | |
const SbElapsedTime & | t | |||
) | [friend] |
Writes the time to the specified output stream.