8#include <RobotsIO/Utils/ClockedComponent.h>
10using namespace RobotsIO::Utils;
13ClockedComponent::ClockedComponent()
16 clock_ = std::make_shared<Clock>();
20void ClockedComponent::start_count()
22 current_time_ = clock_->now();
26double ClockedComponent::stop_count()
const
28 return clock_->now() - current_time_;
32Clock& ClockedComponent::clock()
38void ClockedComponent::replace_clock(std::shared_ptr<Clock> clock)