Class Timestamp
Defined in File Timestamp.hpp
Nested Relationships
Nested Types
Class Documentation
-
class Timestamp
A helper class for automated time stamping. Timing is started as soon as an object of this class is created. To time some parts of a program, just create a new object and use the provided output operator to display the elapsed time.
Public Functions
-
Timestamp()
Constructor.
-
unsigned long getCurrentTimeInMs() const
Returns the current system time in milliseconds.
-
unsigned long getElapsedTimeInMs() const
Returns the milliseconds since object creation.
-
double getCurrentTimeinS() const
Returns the current system time in seconds.
-
double getElapsedTimeInS() const
Returns the time since instantiation in seconds.
-
void resetTimer()
Resets the internal timer.
-
inline void setQuiet(bool quiet)
-
string getElapsedTime() const
Returns a string representation of the current timer value.
-
inline bool isQuiet()
-
inline ostream &getNullStream()
-
Timestamp()