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;
161SFML_SYSTEM_API
bool operator ==(
Time left,
Time right);
173SFML_SYSTEM_API
bool operator !=(
Time left,
Time right);
185SFML_SYSTEM_API
bool operator <(
Time left,
Time right);
197SFML_SYSTEM_API
bool operator >(
Time left,
Time right);
209SFML_SYSTEM_API
bool operator <=(
Time left,
Time right);
221SFML_SYSTEM_API
bool operator >=(
Time left,
Time right);
292SFML_SYSTEM_API
Time operator *(
Time left,
float right);
304SFML_SYSTEM_API
Time operator *(
Time left, Int64 right);
316SFML_SYSTEM_API
Time operator *(
float left,
Time right);
328SFML_SYSTEM_API
Time operator *(Int64 left,
Time right);
340SFML_SYSTEM_API
Time& operator *=(
Time& left,
float right);
352SFML_SYSTEM_API
Time& operator *=(
Time& left, Int64 right);
364SFML_SYSTEM_API
Time operator /(
Time left,
float right);
376SFML_SYSTEM_API
Time operator /(
Time left, Int64 right);
388SFML_SYSTEM_API
Time& operator /=(
Time& left,
float right);
400SFML_SYSTEM_API
Time& operator /=(
Time& left, Int64 right);
412SFML_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.