Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
TimeSpec.h File Reference
#include <misc/gen/time.h>
#include <misc/global.h>
Include dependency graph for TimeSpec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sf::TimeSpec
 Class wrapper for timespec structure to modify. More...
 

Namespaces

namespace  sf
 

Functions

sf::TimeSpec operator+ (const timespec &lhs, const timespec &rhs)
 Addition operator for std::timespec types which also work for sf::TimeSpec.
 
sf::TimeSpec operator- (const timespec &lhs, const timespec &rhs)
 Subtraction operator for std::timespec types which also work for sf::TimeSpec.
 
std::ostream & operator<< (std::ostream &os, const sf::TimeSpec &ts)
 Operator for writing the sf::TimeSpec to an output-stream.
 

Function Documentation

◆ operator+()

sf::TimeSpec operator+ ( const timespec &  lhs,
const timespec &  rhs 
)
inline

Addition operator for std::timespec types which also work for sf::TimeSpec.

Parameters
lhsLeft value of the addition.
rhsRight 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
lhsLeft value of the subtraction.
rhsRight 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
TBase floating point type.
Parameters
osOutput stream.
tsTimeSpec to stream out.
Returns
The passed output stream.