Go to the source code of this file.
◆ operator+()
| sf::TimeSpec operator+ |
( |
const timespec & |
lhs, |
|
|
const timespec & |
rhs |
|
) |
| |
|
inline |
Addition operator for std::timespec types which also work for sf::TimeSpec.
- Parameters
-
| lhs | Left value of the addition. |
| rhs | Right value of the addition. |
- Returns
- Subtraction result as a sf::TimeSpec.
◆ operator-()
| sf::TimeSpec operator- |
( |
const timespec & |
lhs, |
|
|
const timespec & |
rhs |
|
) |
| |
|
inline |
Subtraction operator for std::timespec types which also work for sf::TimeSpec.
- Parameters
-
| lhs | Left value of the subtraction. |
| rhs | Right value of the subtraction. |
- Returns
- Subtraction result as a sf::TimeSpec.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const sf::TimeSpec & |
ts |
|
) |
| |
|
inline |
Operator for writing the sf::TimeSpec to an output-stream.
- Template Parameters
-
| T | Base floating point type. |
- Parameters
-
| os | Output stream. |
| ts | TimeSpec to stream out. |
- Returns
- The passed output stream.