3 #include <IceUtil/Time.h>
16 case dto::ClockType::Realtime:
17 bo = ClockType::Realtime;
19 case dto::ClockType::Monotonic:
20 bo = ClockType::Monotonic;
22 case dto::ClockType::Virtual:
23 bo = ClockType::Virtual;
25 case dto::ClockType::Unknown:
26 bo = ClockType::Unknown;
37 case ClockType::Realtime:
38 dto = dto::ClockType::Realtime;
40 case ClockType::Monotonic:
41 dto = dto::ClockType::Monotonic;
43 case ClockType::Virtual:
44 dto = dto::ClockType::Virtual;
46 case ClockType::Unknown:
47 dto = dto::ClockType::Unknown;
63 dto.microSeconds =
bo.toMicroSeconds();
71 fromIce(dto.cycleDuration, cycleDuration);
79 toIce(dto.cycleDuration,
bo.toCycleDuration());
88 fromIce(dto.timeSinceEpoch, duration);
89 fromIce(dto.clockType, clockType);
90 bo =
DateTime(duration, clockType, dto.hostname);
97 toIce(dto.timeSinceEpoch,
bo.toDurationSinceEpoch());
98 toIce(dto.clockType,
bo.clockType());
99 dto.hostname =
bo.hostname();
113 dto = IceUtil::Time::microSeconds(
bo.toMicroSeconds());
122 bo =
DateTime(duration, ClockType::Unknown,
"unknown");
129 dto = IceUtil::Time::microSeconds(
bo.toMicroSecondsSinceEpoch());
146 return os <<
bo;
return os;
151 fromIce(dto.cycleDuration, cycleDuration);