chrono.hpp File Reference

C++11 chrono drop in replacement that adds the function now based on xtimer/timex. More...

Detailed Description

C++11 chrono drop in replacement that adds the function now based on xtimer/timex.

See also
std::thread, defined in header thread
Author
Raphael Hiesgen <raphael.hiesgen (at) haw-hamburg.de>

Definition in file chrono.hpp.

#include <chrono>
#include <algorithm>
#include "time.h"
#include "xtimer.h"
+ Include dependency graph for chrono.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  riot::time_point
 A time point for timed wait, as clocks from the standard are not available on RIOT. More...
 

Functions

time_point riot::now ()
 Returns the current time saved in a time point. More...
 
bool riot::operator< (const time_point &lhs, const time_point &rhs)
 Compares two timepoints.
 
bool riot::operator> (const time_point &lhs, const time_point &rhs)
 Compares two timepoints.
 
bool riot::operator<= (const time_point &lhs, const time_point &rhs)
 Compares two timepoints.
 
bool riot::operator>= (const time_point &lhs, const time_point &rhs)
 Compare two timepoints.
 

Function Documentation

◆ now()

time_point riot::now ( )
inline

Returns the current time saved in a time point.

Returns
time_point containing the current time.

Definition at line 107 of file chrono.hpp.