Go to the documentation of this file.
3 #include <IceUtil/Time.h>
24 j[
"microSeconds"] =
bo.toMicroSeconds();
25 j[
"humanReadable"] =
bo.toDurationString();
35 j[
"cycleDuration"] =
bo.toCycleDuration();
36 j[
"hertz"] =
bo.toHertzDouble();
46 j[
"durationSinceEpoch"] =
bo.toDurationSinceEpoch();
47 j[
"clockType"] =
bo.clockType();
48 j[
"hostname"] =
bo.hostname();
49 j[
"humanReadable"] =
bo.toDateTimeString();
56 j.at(
"hostname").get<std::string>());
void to_json(simox::json::json &j, const ClockType &bo)
const simox::meta::EnumNames< ClockType > ClockTypeNames
ClockType
Describes the type of clock.
void from_json(const simox::json::json &j, ClockType &bo)
Represents a point in time.
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
const std::optional< BoT > & bo