Loading...
Searching...
No Matches
chrono.hpp File Reference

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

Detailed Description

C++11 chrono drop in replacement that adds the function now based on ztimer/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 "timex.h"
#include "ztimer64.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...
 

Namespaces

namespace  riot
 RIOT C++ namespace.
 

Functions

time_point riot::now ()
 Returns the current time saved in a time point.
 
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.