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