A time-based amount of time.
More...
#include <ignite_duration.h>
A time-based amount of time.
This is modeled after java.time.Duration.
◆ ignite_duration() [1/2]
| ignite::ignite_duration::ignite_duration |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ ignite_duration() [2/2]
| ignite::ignite_duration::ignite_duration |
( |
std::int64_t | seconds, |
|
|
std::int32_t | nanos ) |
|
inlineconstexpr |
Constructor.
- Parameters
-
| seconds | Number of seconds. |
| nanos | Fractional second component in nanoseconds. |
◆ compare()
| int ignite::ignite_duration::compare |
( |
const ignite_duration & | other | ) |
const |
|
inlineconstexprnoexcept |
compare to another value.
- Parameters
-
| other | Instance to compare to. |
- Returns
- Zero if equals, negative number if less, and positive if greater.
◆ get_nano()
| std::int32_t ignite::ignite_duration::get_nano |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Gets the number of nanoseconds.
◆ get_seconds()
| std::int64_t ignite::ignite_duration::get_seconds |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Gets the number of seconds.
The documentation for this class was generated from the following file: