µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::estd::chrono Namespace Reference

Classes

struct  has_sleep_for
 
class  high_resolution_clock
 
class  realtime_clock
 
class  system_clock
 
class  systick_clock
 

Functions

template<class _To , class Rep_T , class Period_T >
constexpr std::enable_if< std::chrono::__is_duration< _To >::value, _To >::type ceil (std::chrono::duration< Rep_T, Period_T > d)
 
using systicks = systick_clock::duration
 
using steady_clock = system_clock
 
constexpr systicks operator""_ticks (unsigned long long t)
 

Typedef Documentation

◆ steady_clock

Definition at line 190 of file chrono.

◆ systicks

Definition at line 97 of file chrono.

Function Documentation

◆ ceil()

template<class _To , class Rep_T , class Period_T >
constexpr std::enable_if< std::chrono::__is_duration< _To >::value, _To >::type os::estd::chrono::ceil ( std::chrono::duration< Rep_T, Period_T >  d)
constexpr

Definition at line 258 of file chrono.

259 {
260 using namespace std::chrono;
261 _To r = std::chrono::duration_cast<_To> (d);
262 if (r < d)
263 {
264 ++r;
265 }
266 return r;
267 }

References ceil().

Referenced by ceil(), and os::estd::condition_variable::wait_for().

◆ operator""_ticks()

constexpr systicks os::estd::chrono::operator""_ticks ( unsigned long long  t)
constexpr

Definition at line 115 of file chrono.

116 {
117 return systicks (static_cast<systick_clock::rep> (t));
118 }
rtos::clock_systick::timestamp_t rep
type of variable holding the tick counter
Definition chrono:70
systick_clock::duration systicks
Definition chrono:97