3 #include <IceUtil/Time.h>
15 case dto::ClockType::Realtime:
16 bo = ClockType::Realtime;
18 case dto::ClockType::Monotonic:
19 bo = ClockType::Monotonic;
21 case dto::ClockType::Virtual:
22 bo = ClockType::Virtual;
24 case dto::ClockType::Unknown:
25 bo = ClockType::Unknown;
35 case ClockType::Realtime:
36 dto = dto::ClockType::Realtime;
38 case ClockType::Monotonic:
39 dto = dto::ClockType::Monotonic;
41 case ClockType::Virtual:
42 dto = dto::ClockType::Virtual;
44 case ClockType::Unknown:
45 dto = dto::ClockType::Unknown;
59 dto.microSeconds =
bo.toMicroSeconds();
66 fromIce(dto.cycleDuration, cycleDuration);
73 toIce(dto.cycleDuration,
bo.toCycleDuration());
81 fromIce(dto.timeSinceEpoch, duration);
82 fromIce(dto.clockType, clockType);
83 bo =
DateTime(duration, clockType, dto.hostname);
89 toIce(dto.timeSinceEpoch,
bo.toDurationSinceEpoch());
90 toIce(dto.clockType,
bo.clockType());
91 dto.hostname =
bo.hostname();
103 dto = IceUtil::Time::microSeconds(
bo.toMicroSeconds());
111 bo =
DateTime(duration, ClockType::Unknown,
"unknown");
117 dto = IceUtil::Time::microSeconds(
bo.toMicroSecondsSinceEpoch());
145 fromIce(dto.cycleDuration, cycleDuration);