Loading...
Searching...
No Matches
riot::time_point Class Reference

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

Detailed Description

A time point for timed wait, as clocks from the standard are not available on RIOT.

Definition at line 41 of file chrono.hpp.

#include <chrono.hpp>

Public Member Functions

 time_point ()
 Creates a time point with seconds and microseconds set to 0.
 
 time_point (timex_t &&tp)
 Create time point from timex_t struct.
 
constexpr time_point (const time_point &tp)=default
 Use default copy constructor.
 
constexpr time_point (time_point &&tp)=default
 Use default move constructor.
 
native_handle_type native_handle () const
 Gives access to the native handle that stores the time information.
 
template<class Rep , class Period >
time_pointoperator+= (const std::chrono::duration< Rep, Period > &d)
 Add a standard chrono::duration to this time point.
 
uint32_t seconds () const
 Returns seconds member as uint32_t.
 
uint32_t microseconds () const
 Returns microseconds member as uint32_t.
 

Constructor & Destructor Documentation

◆ time_point() [1/2]

riot::time_point::time_point ( )
inline

Creates a time point with seconds and microseconds set to 0.

Definition at line 48 of file chrono.hpp.

◆ time_point() [2/2]

riot::time_point::time_point ( timex_t &&  tp)
inlineexplicit

Create time point from timex_t struct.

Definition at line 52 of file chrono.hpp.

Member Function Documentation

◆ microseconds()

uint32_t riot::time_point::microseconds ( ) const
inline

Returns microseconds member as uint32_t.

Definition at line 88 of file chrono.hpp.

◆ native_handle()

native_handle_type riot::time_point::native_handle ( ) const
inline

Gives access to the native handle that stores the time information.

Definition at line 65 of file chrono.hpp.

◆ operator+=()

template<class Rep , class Period >
time_point & riot::time_point::operator+= ( const std::chrono::duration< Rep, Period > &  d)
inline

Add a standard chrono::duration to this time point.

Definition at line 71 of file chrono.hpp.

◆ seconds()

uint32_t riot::time_point::seconds ( ) const
inline

Returns seconds member as uint32_t.

Definition at line 83 of file chrono.hpp.


The documentation for this class was generated from the following file: