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