10 #include <boost/noncopyable.hpp> 11 #include <boost/date_time/posix_time/posix_time.hpp> 128 #endif // STOPWATCH_H void reset()
Resets the stopwatch.
long getTotalMilliseconds() const
Retrieves the total measured duration in milliseconds.
Stopwatch class implementation.
void stop()
Stops the stopwatch.
Utility class to measure code execution times.
boost::posix_time::time_duration getTotalDuration() const
Retrieves total measured duration.
std::string logFormatLastDuration() const
Returns the last measured duration in the format directly usable in log messages. ...
boost::posix_time::time_duration getLastDuration() const
Retrieves last measured duration.
Defines the logger used by the top-level component of kea-lfc.
std::string logFormatTotalDuration() const
Returns the total measured duration in the format directly usable in the log messages.
Stopwatch(const bool autostart=true)
Constructor.
long getLastMicroseconds() const
Retrieves the last measured duration in microseconds.
long getTotalMicroseconds() const
Retrieves the total measured duration in microseconds.
void start()
Starts the stopwatch.
long getLastMilliseconds() const
Retrieves the last measured duration in milliseconds.