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;
76 bo = Duration::MicroSeconds(dto.microSeconds);
82 dto.microSeconds =
bo.toMicroSeconds();
89 fromAron(dto.cycleDuration, cycleDuration);
97 toAron(dto.cycleDuration,
bo.toCycleDuration());
107 fromAron(dto.timeSinceEpoch, timeSinceEpoch);
109 bo =
DateTime(timeSinceEpoch, clockType, dto.hostname);
115 toAron(dto.clockType,
bo.clockType());
116 toAron(dto.timeSinceEpoch,
bo.toDurationSinceEpoch());
117 dto.hostname =
bo.hostname();