34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 explicit Time(std::chrono::steady_clock::duration duration);
126 std::chrono::steady_clock::duration m_duration;
243 #ifndef DOXYGEN_SHOULD_SKIP_THIS
int32_t asMilliseconds() const
Return the time value as a number of milliseconds.
std::chrono::steady_clock::duration asDuration() const
Return the time value as a duration.
Definition: Time.h:121
bool operator>=(const Time &rhs, const Time &lhs)
Greater or equal than operator.
Definition: Time.h:239
bool operator==(const Time &rhs, const Time &lhs)
Equality operator.
Definition: Time.h:174
bool operator<=(const Time &rhs, const Time &lhs)
Lesser or equal operator.
Definition: Time.h:226
bool operator<(const Time &rhs, const Time &lhs)
Lesser than operator.
Definition: Time.h:200
Represents a time value.
Definition: Time.h:73
Time(std::chrono::steady_clock::duration duration)
Constructor with a duration.
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.
Time()
Default constructor.
Time microseconds(int64_t amount)
Construct a time value from a number of microseconds.
bool operator>(const Time &rhs, const Time &lhs)
Greater than operator.
Definition: Time.h:213
int64_t asMicroseconds() const
Return the time value as a number of microseconds.
#define GF_API
Definition: Portability.h:35
Time seconds(float amount)
Construct a time value from a number of seconds.
bool operator!=(const Time &rhs, const Time &lhs)
Inequality operator.
Definition: Time.h:187