25 #ifndef CPP3DS_TIME_HPP
26 #define CPP3DS_TIME_HPP
28 #include <cpp3ds/Config.hpp>
86 friend Time seconds(
float);
87 friend Time milliseconds(Int32);
88 friend Time microseconds(Int64);
99 explicit Time(Int64 microseconds);
106 Int64 m_microseconds;
120 Time seconds(
float amount);
133 Time milliseconds(Int32 amount);
146 Time microseconds(Int64 amount);
158 bool operator ==(
Time left,
Time right);
170 bool operator !=(
Time left,
Time right);
182 bool operator <(
Time left,
Time right);
194 bool operator >(
Time left,
Time right);
206 bool operator <=(
Time left,
Time right);
218 bool operator >=(
Time left,
Time right);
289 Time operator *(
Time left,
float right);
301 Time operator *(
Time left, Int64 right);
313 Time operator *(
float left,
Time right);
325 Time operator *(Int64 left,
Time right);
337 Time& operator *=(
Time& left,
float right);
349 Time& operator *=(
Time& left, Int64 right);
361 Time operator /(
Time left,
float right);
373 Time operator /(
Time left, Int64 right);
385 Time& operator /=(
Time& left,
float right);
397 Time& operator /=(
Time& left, Int64 right);
409 float operator /(
Time left,
Time right);
Int32 asMilliseconds() const
Return the time value as a number of milliseconds.
Time()
Default constructor.
Int64 asMicroseconds() const
Return the time value as a number of microseconds.
float asSeconds() const
Return the time value as a number of seconds.
static const Time Zero
Predefined "zero" time value.