#include <Logger.h>
Public Methods | |
void | printTimeDiffWithText (ostream &os, char *str, int iFactor=1000) |
double | getElapsedTime () |
void | restartTime () |
Static Public Methods | |
double | getTimeDifference (struct timeval t1, struct timeval t2) |
Private Attributes | |
timeval | time1 |
Definition at line 68 of file Logger.h.
|
This method returns the time (in seconds) since the last time the timer was restarted.
Definition at line 298 of file Logger.C. References getTimeDifference(), and time1. Referenced by printTimeDiffWithText(). |
|
This method returns the difference between two timevals in seconds.
Definition at line 274 of file Logger.C. Referenced by getElapsedTime(). |
|
This method prints the time in seconds that elapsed since the timer was restarted. It is possible to multiply this time with a factor, such that it can be used for different quantity values. In the default case this value is 1000 with the effect that the resulting value resembles miliseconds.
Definition at line 289 of file Logger.C. References getElapsedTime(). Referenced by Logger::logWithTime(). |
|
This method restarts the timer by setting it to the current time Definition at line 306 of file Logger.C. References time1. Referenced by Logger::Logger(), and Logger::restartTimer(). |
|
Time the timer has last been restarted. Definition at line 70 of file Logger.h. Referenced by getElapsedTime(), and restartTime(). |