36 using namespace chrono;
39 hours hh = duration_cast<hours>(d);
40 minutes mm = duration_cast<minutes>(d % hours(1));
42 oss << right << setfill(
'0') << setw(2) << hh.count() <<
":" << setw(2) << mm.count() <<
":" << setw(2) << 0;
49 using namespace chrono;
52 hours hh = duration_cast<hours>(d);
53 minutes mm = duration_cast<minutes>(d % hours(1));
54 seconds ss = duration_cast<seconds>(d % minutes(1));
56 oss << right << setfill(
'0') << setw(2) << hh.count() <<
":" << setw(2) << mm.count() <<
":" << setw(2)
64 using namespace chrono;
67 hours hh = duration_cast<hours>(d);
68 minutes mm = duration_cast<minutes>(d % hours(1));
69 seconds ss = duration_cast<seconds>(d % minutes(1));
70 milliseconds milli = duration_cast<milliseconds>(d % seconds(1));
72 oss << right << setfill(
'0') << setw(2) << hh.count() <<
":" << setw(2) << mm.count() <<
":" << setw(2)
73 << ss.count() <<
":" << setw(3) << milli.count();
80 using namespace chrono;
83 hours hh = duration_cast<hours>(d);
84 minutes mm = duration_cast<minutes>(d % hours(1));
85 seconds ss = duration_cast<seconds>(d % minutes(1));
86 milliseconds milli = duration_cast<milliseconds>(d % seconds(1));
87 microseconds micro = duration_cast<microseconds>(d % milliseconds(1));
89 oss << right << setfill(
'0') << setw(2) << hh.count() <<
":" << setw(2) << mm.count() <<
":" << setw(2)
90 << ss.count() <<
":" << setw(3) << milli.count() <<
":" << setw(3) << micro.count();
97 using namespace chrono;
100 hours hh = duration_cast<hours>(d);
101 minutes mm = duration_cast<minutes>(d % hours(1));
102 seconds ss = duration_cast<seconds>(d % minutes(1));
103 milliseconds milli = duration_cast<milliseconds>(d % seconds(1));
104 microseconds micro = duration_cast<microseconds>(d % milliseconds(1));
105 nanoseconds nano = duration_cast<nanoseconds>(d % microseconds(1));
107 oss << right << setfill(
'0') << setw(2) << hh.count() <<
":" << setw(2) << mm.count() <<
":" << setw(2)
108 << ss.count() <<
":" << setw(3) << milli.count() <<
":" << setw(3) << micro.count() <<
":" << setw(3)
109 << nano.count() << endl;
Utilities to tag clocks and reformat clock readout to string.
static std::string ToColonString(std::chrono::minutes d)
Produce string in hh:mm:ss format.
Namespace for the simulator and related classes.