#include <Duration.h>
◆ Duration() [1/2]
constexpr Duration::Duration |
( |
| ) |
|
|
constexprdefault |
◆ Duration() [2/2]
constexpr Duration::Duration |
( |
int |
seconds, |
|
|
int |
minutes, |
|
|
int |
hours, |
|
|
int |
days, |
|
|
int |
weeks, |
|
|
int |
months, |
|
|
int |
years |
|
) |
| |
|
inlineconstexpr |
◆ days()
constexpr int Duration::days |
( |
| ) |
const |
|
inlineconstexpr |
◆ fromDays()
static constexpr Duration Duration::fromDays |
( |
int |
days | ) |
|
|
inlinestaticconstexpr |
◆ fromHours()
static constexpr Duration Duration::fromHours |
( |
int |
hours | ) |
|
|
inlinestaticconstexpr |
◆ fromMinutes()
static constexpr Duration Duration::fromMinutes |
( |
int |
minutes | ) |
|
|
inlinestaticconstexpr |
◆ fromMonths()
static constexpr Duration Duration::fromMonths |
( |
int |
months | ) |
|
|
inlinestaticconstexpr |
◆ fromRealtimeMilliseconds()
static constexpr Duration Duration::fromRealtimeMilliseconds |
( |
int64_t |
msec | ) |
|
|
inlinestaticconstexpr |
◆ fromRealtimeSeconds()
static constexpr Duration Duration::fromRealtimeSeconds |
( |
int64_t |
seconds | ) |
|
|
inlinestaticconstexpr |
◆ fromSeconds()
static constexpr Duration Duration::fromSeconds |
( |
int |
seconds | ) |
|
|
inlinestaticconstexpr |
◆ fromTicks()
static constexpr Duration Duration::fromTicks |
( |
int64_t |
ticks | ) |
|
|
inlinestaticconstexpr |
◆ fromYears()
static constexpr Duration Duration::fromYears |
( |
int |
years | ) |
|
|
inlinestaticconstexpr |
◆ hours()
constexpr int64_t Duration::hours |
( |
| ) |
const |
|
inlineconstexpr |
◆ minutes()
constexpr int64_t Duration::minutes |
( |
| ) |
const |
|
inlineconstexpr |
◆ months()
constexpr int Duration::months |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator bool()
constexpr Duration::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexpr |
◆ operator*=()
template<class R >
requires std::is_arithmetic_v<R>
constexpr Duration & Duration::operator*= |
( |
R |
r | ) |
|
|
inlineconstexpr |
◆ operator+=()
◆ operator-=()
◆ operator/=()
template<class R >
requires std::is_arithmetic_v<R>
constexpr Duration & Duration::operator/= |
( |
R |
r | ) |
|
|
inlineconstexpr |
◆ random()
◆ randomRealtimeMilliseconds() [1/2]
◆ randomRealtimeMilliseconds() [2/2]
◆ randomRealtimeSeconds() [1/2]
◆ randomRealtimeSeconds() [2/2]
◆ realtimeMilliseconds()
constexpr int64_t Duration::realtimeMilliseconds |
( |
| ) |
const |
|
inlineconstexpr |
◆ realtimeMillisecondsFloat()
constexpr float Duration::realtimeMillisecondsFloat |
( |
| ) |
const |
|
inlineconstexpr |
◆ realtimeSeconds()
constexpr int64_t Duration::realtimeSeconds |
( |
| ) |
const |
|
inlineconstexpr |
◆ roundedDown()
◆ roundedUp()
◆ seconds()
constexpr int64_t Duration::seconds |
( |
| ) |
const |
|
inlineconstexpr |
◆ ticks()
constexpr int64_t Duration::ticks |
( |
| ) |
const |
|
inlineconstexpr |
◆ toCivilDuration()
◆ toLongCivilDuration()
◆ weeks()
constexpr int Duration::weeks |
( |
| ) |
const |
|
inlineconstexpr |
◆ years()
constexpr int Duration::years |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator%
◆ operator* [1/2]
template<class R >
requires std::is_arithmetic_v<R>
◆ operator* [2/2]
template<class L >
requires std::is_arithmetic_v<L>
◆ operator+
◆ operator-
◆ operator/ [1/2]
◆ operator/ [2/2]
template<class R >
requires std::is_arithmetic_v<R>
◆ operator<=>
◆ operator==
◆ _ticks
int64_t Duration::_ticks = 0 |
|
private |
◆ GAME_SECONDS_IN_REALTIME_SECOND
constexpr int64_t Duration::GAME_SECONDS_IN_REALTIME_SECOND = 30 |
|
staticconstexpr |
◆ TICKS_PER_REALTIME_SECOND
constexpr int64_t Duration::TICKS_PER_REALTIME_SECOND = 128 |
|
staticconstexpr |
The documentation for this class was generated from the following files: