44 boost::posix_time::time_duration
49 boost::posix_time::time_duration
void reset()
Resets the stopwatch.
void reset()
Reset the stopwatch.
void stop()
Stop the stopwatch.
long getTotalMilliseconds() const
Retrieves the total measured duration in milliseconds.
boost::posix_time::time_duration getTotalDuration() const
Retrieves the total measured duration.
Stopwatch class implementation.
void stop()
Stops the stopwatch.
boost::posix_time::time_duration getLastDuration() const
Retrieves the measured duration.
void start()
Starts the stopwatch.
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.
static std::string logFormat(const boost::posix_time::time_duration &duration)
Returns the duration in the textual format which can be directly used in log messages.
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.