31 #include <SFML/System/Export.hpp>
89 friend SFML_SYSTEM_API
Time seconds(
float);
90 friend SFML_SYSTEM_API
Time milliseconds(Int32);
91 friend SFML_SYSTEM_API
Time microseconds(Int64);
102 explicit Time(Int64 microseconds);
109 Int64 m_microseconds;
161 SFML_SYSTEM_API
bool operator ==(
Time left,
Time right);
173 SFML_SYSTEM_API
bool operator !=(
Time left,
Time right);
185 SFML_SYSTEM_API
bool operator <(
Time left,
Time right);
197 SFML_SYSTEM_API
bool operator >(
Time left,
Time right);
209 SFML_SYSTEM_API
bool operator <=(
Time left,
Time right);
221 SFML_SYSTEM_API
bool operator >=(
Time left,
Time right);
292 SFML_SYSTEM_API
Time operator *(
Time left,
float right);
304 SFML_SYSTEM_API
Time operator *(
Time left, Int64 right);
316 SFML_SYSTEM_API
Time operator *(
float left,
Time right);
328 SFML_SYSTEM_API
Time operator *(Int64 left,
Time right);
340 SFML_SYSTEM_API
Time& operator *=(
Time& left,
float right);
352 SFML_SYSTEM_API
Time& operator *=(
Time& left, Int64 right);
364 SFML_SYSTEM_API
Time operator /(
Time left,
float right);
376 SFML_SYSTEM_API
Time operator /(
Time left, Int64 right);
388 SFML_SYSTEM_API
Time& operator /=(
Time& left,
float right);
400 SFML_SYSTEM_API
Time& operator /=(
Time& left, Int64 right);
412 SFML_SYSTEM_API
float operator /(
Time left,
Time right);
Int64 asMicroseconds() const
Return the time value as a number of microseconds.
Time microseconds(Int64 amount)
Construct a time value from a number of microseconds.
static const Time Zero
Predefined "zero" time value.
Time milliseconds(Int32 amount)
Construct a time value from a number of milliseconds.
Int32 asMilliseconds() const
Return the time value as a number of milliseconds.
float asSeconds() const
Return the time value as a number of seconds.
Time()
Default constructor.
Time seconds(float amount)
Construct a time value from a number of seconds.