 |
Kea
1.5.0
|
Go to the documentation of this file.
15 using namespace boost::posix_time;
44 boost::posix_time::time_duration
49 boost::posix_time::time_duration
long getLastMicroseconds() const
Retrieves the last measured duration in microseconds.
Stopwatch class implementation.
long getTotalMicroseconds() const
Retrieves the total measured duration in microseconds.
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.
boost::posix_time::time_duration getTotalDuration() const
Retrieves the total measured duration.
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 stop()
Stop the stopwatch.
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.
void reset()
Reset the stopwatch.
void start()
Starts the stopwatch.
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.
boost::posix_time::time_duration getLastDuration() const
Retrieves the measured duration.
Stopwatch(const bool autostart=true)
Constructor.