3#include <IceUtil/Time.h>
7#include <RobotAPI/libraries/aron/common/aron/time.aron.generated.h>
12 bo = IceUtil::Time::microSeconds(dto);
18 dto = bo.toMicroSeconds();
38 case arondto::ClockType::Realtime:
39 bo = ClockType::Realtime;
41 case arondto::ClockType::Monotonic:
42 bo = ClockType::Monotonic;
44 case arondto::ClockType::Virtual:
45 bo = ClockType::Virtual;
47 case arondto::ClockType::Unknown:
48 bo = ClockType::Unknown;
58 case ClockType::Realtime:
59 dto = arondto::ClockType::Realtime;
61 case ClockType::Monotonic:
62 dto = arondto::ClockType::Monotonic;
64 case ClockType::Virtual:
65 dto = arondto::ClockType::Virtual;
67 case ClockType::Unknown:
68 dto = arondto::ClockType::Unknown;
89 fromAron(dto.cycleDuration, cycleDuration);
107 fromAron(dto.timeSinceEpoch, timeSinceEpoch);
109 bo =
DateTime(timeSinceEpoch, clockType, dto.hostname);
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
Represents a point in time.
std::string hostname() const
Duration toDurationSinceEpoch() const
ClockType clockType() const
std::int64_t toMicroSeconds() const
Returns the amount of microseconds.
Duration toCycleDuration() const
void fromAron(const long &dto, IceUtil::Time &bo)
void toAron(long &dto, const IceUtil::Time &bo)
void fromAron(const arondto::ClockType &dto, ClockType &bo)
void toAron(arondto::ClockType &dto, const ClockType &bo)
ClockType
Describes the type of clock.