Go to the documentation of this file.
6 #include <IceUtil/Time.h>
126 static IceUtil::Time measure(std::function<
void(
void)> subjectToMeasure,
130 bool isStopped()
const;
bool isStopped() const
Returns whether the timer is stopped or is actively measuring time.
DateTime startingTime() const
Returns the date/time at starting the timer.
Clock to get date/time from a specific clock type or wait for certain durations or until certain date...
Duration stop()
Stops the timer and returns the measured duration.
ClockType
Describes the type of clock.
Duration stopAndReset()
Stops and resets the timer.
armarx::core::time::DateTime Time
@ Virtual
Time given by time server if configured, realtime otherwise.
Represents a point in time.
TimeMode
Time mode to be used.
static Duration measure(std::function< void(void)> subjectToMeasure, ClockType clockType=ClockType::Virtual)
Measures the duration needed to execute the given lambda and returns it.
Measures the passed time between the construction or calling reset() and stop().
virtual ~StopWatch()
Destructs the StopWatch.
StopWatch(ClockType clockType=ClockType::Virtual)
Constructs a StopWatch and starts it immediately.
DateTime stoppingTime() const
Returns the date/time at stopping the timer.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void reset()
Resets the timer.