10 #include <boost/noncopyable.hpp>
11 #include <boost/date_time/posix_time/posix_time.hpp>
128 #endif // STOPWATCH_H
void reset()
Resets the stopwatch.
boost::posix_time::time_duration getTotalDuration() const
Retrieves total measured duration.
long getTotalMicroseconds() const
Retrieves the total measured duration in microseconds.
long getTotalMilliseconds() const
Retrieves the total measured duration in milliseconds.
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. ...
Utility class to measure code execution times.
Defines the logger used by the top-level component of kea-dhcp-ddns.
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.