Class for measuring elapsed time with high resolution. More...
#include <Inventor/SbElapsedTime.h>
Public Member Functions | |
SbElapsedTime () | |
Constructor (initializes timer) | |
void | reset () |
Resets timer. | |
double | getElapsed () const |
Gets elapsed time in seconds. | |
SbTime | getElapsedTime () const |
Gets elapsed time. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SbElapsedTime &t) |
Writes the time to the specified output stream. | |
Class for measuring elapsed time with high resolution.
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).
Definition at line 45 of file SbElapsedTime.h.
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.
|
friend |
Writes the time to the specified output stream.