Derivation of mira::Duration with human-readable serialization.
More...
#include <utils/TimeHumanReadable.h>
template<bool AsString = true>
class mira::HumanReadableSerialization::Duration< AsString >
Derivation of mira::Duration with human-readable serialization.
Specialized as DurationSerializedAsIsoString, DurationSerializedAsHMS
◆ Base
◆ Duration() [1/2]
◆ Duration() [2/2]
◆ reflectRead()
◆ reflectWrite()
void reflectWrite |
( |
Reflector & |
r | ) |
|
|
inline |
◆ nanoseconds() [1/2]
Can be used to construct a Duration object that is specified in nanoseconds.
- See also
- seconds
◆ nanoseconds() [2/2]
tick_type nanoseconds |
( |
| ) |
const |
|
inlineinherited |
Returns normalized number of nanoseconds (0..999)
◆ microseconds() [1/2]
Can be used to construct a Duration object that is specified in microseconds.
- See also
- seconds
◆ microseconds() [2/2]
tick_type microseconds |
( |
| ) |
const |
|
inlineinherited |
Returns normalized number of microseconds (0..999)
◆ milliseconds() [1/2]
Can be used to construct a Duration object that is specified in milliseconds.
- See also
- seconds
◆ milliseconds() [2/2]
tick_type milliseconds |
( |
| ) |
const |
|
inlineinherited |
◆ seconds() [1/2]
Can be used to construct a Duration object that is specified in seconds.
e.g:
Durations can also be added:
◆ seconds() [2/2]
sec_type seconds |
( |
| ) |
const |
|
inlineinherited |
Returns normalized number of seconds (0..59)
◆ minutes() [1/2]
Can be used to construct a Duration object that is specified in minutes.
- See also
- seconds
◆ minutes() [2/2]
min_type minutes |
( |
| ) |
const |
|
inlineinherited |
Returns normalized number of minutes (0..59)
◆ hours() [1/2]
Can be used to construct a Duration object that is specified in hours.
- See also
- seconds
◆ hours() [2/2]
hour_type hours |
( |
| ) |
const |
|
inlineinherited |
Returns number of hours in the duration.
◆ negativeInfinity()
Returns a special duration time representing negative infinity.
◆ infinity()
Returns a special duration time representing positive infinity.
◆ invalid()
Returns an invalid duration.
◆ isValid()
Checks if this duration is invalid.
◆ isInfinity()
bool isInfinity |
( |
| ) |
const |
|
inlineinherited |
Checks if this duration is infinity.
◆ totalSeconds()
sec_type totalSeconds |
( |
| ) |
const |
|
inlineinherited |
Returns total number of seconds truncating any fractional seconds.
◆ totalMilliseconds()
tick_type totalMilliseconds |
( |
| ) |
const |
|
inlineinherited |
Returns total number of milliseconds truncating any fractional milliseconds.
◆ totalMicroseconds()
tick_type totalMicroseconds |
( |
| ) |
const |
|
inlineinherited |
Returns total number of microseconds truncating any fractional microseconds.
◆ totalNanoseconds()
tick_type totalNanoseconds |
( |
| ) |
const |
|
inlineinherited |
Returns total number of nanoseconds truncating any fractional nanoseconds.
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator+()
◆ operator/() [1/3]
◆ operator/() [2/3]
Duration operator/ |
( |
float |
divisor | ) |
const |
|
inlineinherited |
◆ operator/() [3/3]
◆ operator-=()
◆ operator+=()
◆ operator/=() [1/2]
Division operations on a duration with an integer.
◆ operator/=() [2/2]
◆ operator*() [1/2]
Multiplication operations an a duration with an integer.
◆ operator*() [2/2]
◆ operator*=() [1/2]
◆ operator*=() [2/2]
The documentation for this class was generated from the following file: