44 boost::posix_time::time_duration
49 boost::posix_time::time_duration
void reset()
Resets the stopwatch.
boost::posix_time::time_duration getTotalDuration() const
Retrieves total measured duration.
boost::posix_time::time_duration getLastDuration() const
Retrieves the measured duration.
boost::posix_time::time_duration getTotalDuration() const
Retrieves the total measured duration.
void reset()
Reset the stopwatch.
long getTotalMicroseconds() const
Retrieves the total measured duration in microseconds.
long getTotalMilliseconds() const
Retrieves the total measured duration in milliseconds.
void stop()
Stop the stopwatch.
boost::posix_time::time_duration getLastDuration() const
Retrieves last measured duration.
Stopwatch class implementation.
void stop()
Stops the stopwatch.
long getLastMicroseconds() const
Retrieves the last measured duration in microseconds.
std::string logFormatLastDuration() const
Returns the last measured duration in the format directly usable in log messages. ...
void start()
Starts the stopwatch.
Defines the logger used by the top-level component of kea-dhcp-ddns.
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.
long getLastMilliseconds() const
Retrieves the last measured duration in milliseconds.
std::string logFormatTotalDuration() const
Returns the total measured duration in the format directly usable in the log messages.
Stopwatch(const bool autostart=true)
Constructor.
void start()
Starts the stopwatch.