A duration of time.
More...
#include <time.h>
A duration of time.
Resolution 1 second.
◆ TimeSpan() [1/2]
| mio::abm::TimeSpan::TimeSpan |
( |
| ) |
|
|
default |
Default ctor, uninitialized.
◆ TimeSpan() [2/2]
| mio::abm::TimeSpan::TimeSpan |
( |
int |
seconds | ) |
|
|
inlineexplicit |
Creates a TimeSpan that represents a number of seconds.
- Parameters
-
| [in] | seconds | The number of seconds. |
◆ days()
◆ default_serialize()
| auto mio::abm::TimeSpan::default_serialize |
( |
| ) |
|
|
inline |
This method is used by the default serialization feature.
◆ hours()
◆ multiply()
| TimeSpan mio::abm::TimeSpan::multiply |
( |
double |
f | ) |
const |
|
inline |
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator!=()
| bool mio::abm::TimeSpan::operator!= |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ operator*()
| TimeSpan mio::abm::TimeSpan::operator* |
( |
int |
f | ) |
const |
|
inline |
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator*=()
| TimeSpan& mio::abm::TimeSpan::operator*= |
( |
int |
f | ) |
|
|
inline |
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator+()
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator+=()
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator-()
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator-=()
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator/()
| TimeSpan mio::abm::TimeSpan::operator/ |
( |
int |
f | ) |
const |
|
inline |
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator/=()
| TimeSpan& mio::abm::TimeSpan::operator/= |
( |
int |
f | ) |
|
|
inline |
Multiplication with double and rounding down afterwards to whole seconds.
- Parameters
-
| [in] | f | Factor to multiply with. |
- Returns
- New TimeSpan after multiplication.
◆ operator<()
| bool mio::abm::TimeSpan::operator< |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ operator<=()
| bool mio::abm::TimeSpan::operator<= |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ operator==()
| bool mio::abm::TimeSpan::operator== |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ operator>()
| bool mio::abm::TimeSpan::operator> |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ operator>=()
| bool mio::abm::TimeSpan::operator>= |
( |
const TimeSpan & |
other | ) |
const |
|
inline |
◆ seconds()
| int mio::abm::TimeSpan::seconds |
( |
| ) |
const |
|
inline |
Length of time in seconds.
◆ m_seconds
| int mio::abm::TimeSpan::m_seconds |
|
private |
The duration of time in seconds.