6#include <IceUtil/Time.h>
49 std::function<void(
const Duration&)> _callback;
57 class [[deprecated(
"Use armarx::core::time::ScopedStopWatch instead")]]
ScopedStopWatch :
67 std::function<void(IceUtil::Time)> m_callback;
ScopedStopWatch(std::function< void(IceUtil::Time)> callback, armarx::TimeMode timeMode=armarx::TimeMode::SystemTime)
StopWatch(armarx::TimeMode timeMode=armarx::TimeMode::SystemTime)
ScopedStopWatch(std::function< void(const Duration &)> callback, ClockType clockType=ClockType::Virtual)
Constructs a ScopedStopWatch.
virtual ~ScopedStopWatch() override
Destructs the ScopedStopWatch.
StopWatch(ClockType clockType=ClockType::Virtual)
Constructs a StopWatch and starts it immediately.
TimeMode
Time mode to be used.
ClockType
Describes the type of clock.
@ Virtual
Time given by time server if configured, realtime otherwise.
This file offers overloads of toIce() and fromIce() functions for STL container types.