|
Frobby 0.10.0
|
#include <Timer.h>
Public Member Functions | |
| void | reset () |
| unsigned long | getMilliseconds () const |
| void | print (FILE *out) const |
Measures spans of CPU time.
The internal record of time can overflow quickly. If clock_t is 32 bits unsigned and CLOCKS_PER_TIC is one million then overflow will occur after 71 minutes.
| unsigned long Timer::getMilliseconds | ( | ) | const |
Returns the number of CPU milliseconds since the last reset. See class description for time span overflow limitations.
| void Timer::print | ( | FILE * | out | ) | const |
Prints the elapsed time in a human readable format. See class description for time span overflow limitations.
|
inline |
Resets the amount of elapsed CPU time to zero.