31 #include <SFML/System/Export.hpp> 60 float asSeconds()
const;
70 Int32 asMilliseconds()
const;
80 Int64 asMicroseconds()
const;
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;
123 SFML_SYSTEM_API
Time seconds(
float amount);
136 SFML_SYSTEM_API
Time milliseconds(Int32 amount);
149 SFML_SYSTEM_API
Time microseconds(Int64 amount);
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);
232 SFML_SYSTEM_API
Time operator -(
Time right);
256 SFML_SYSTEM_API
Time& operator +=(
Time& left,
Time right);
280 SFML_SYSTEM_API
Time& 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);
436 SFML_SYSTEM_API
Time& operator %=(
Time& left,
Time right);
441 #endif // SFML_TIME_HPP
static const Time Zero
Predefined "zero" time value.