34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81 : m_duration(std::chrono::steady_clock::duration::zero())
91 explicit Time(std::chrono::steady_clock::duration duration)
92 : m_duration(duration)
136 std::chrono::steady_clock::duration m_duration;
279 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Time operator-(Time rhs, Time lhs)
Substraction of two times.
Definition: Time.h:275
int32_t asMilliseconds() const
Return the time value as a number of milliseconds.
bool operator<=(Time rhs, Time lhs)
Lesser or equal operator.
Definition: Time.h:236
std::chrono::steady_clock::duration asDuration() const
Return the time value as a duration.
Definition: Time.h:129
constexpr Time()
Default constructor.
Definition: Time.h:80
bool operator!=(Time rhs, Time lhs)
Inequality operator.
Definition: Time.h:197
bool operator<(Time rhs, Time lhs)
Lesser than operator.
Definition: Time.h:210
Represents a time value.
Definition: Time.h:73
Time(std::chrono::steady_clock::duration duration)
Constructor with a duration.
Definition: Time.h:91
float asSeconds() const
Return the time value as a number of seconds.
Time milliseconds(int32_t amount)
Construct a time value from a number of milliseconds.
bool operator>=(Time rhs, Time lhs)
Greater or equal than operator.
Definition: Time.h:249
The namespace for gf classes.
Definition: Action.h:34
Time microseconds(int64_t amount)
Construct a time value from a number of microseconds.
Time operator+(Time rhs, Time lhs)
Addition of two times.
Definition: Time.h:262
int64_t asMicroseconds() const
Return the time value as a number of microseconds.
bool operator==(Time rhs, Time lhs)
Equality operator.
Definition: Time.h:184
#define GF_API
Definition: Portability.h:35
static const Time Zero
Definition: Time.h:133
Time seconds(float amount)
Construct a time value from a number of seconds.
bool operator>(Time rhs, Time lhs)
Greater than operator.
Definition: Time.h:223