Embedded Artistry Framework
Embedded Systems C++ Framework
Namespaces
time.hpp File Reference
#include <chrono>
Include dependency graph for time.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 embutil
 Embedded framework utility functions and classes.
 

Functions

Time Conversion Functions

Convert between C and C++ time representations.

constexpr std::chrono::nanoseconds embutil::timespecToDuration (const timespec ts) noexcept
 Convert from struct timespec to std::chrono::duration. More...
 
constexpr std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > embutil::timespecToTimePoint (const timespec ts) noexcept
 Convert from struct timespec to std::chrono::time_point. More...
 
constexpr timespec embutil::durationToTimespec (std::chrono::nanoseconds dur) noexcept
 Convert from std::chrono::duration to struct timespec. More...
 
constexpr timespec embutil::timepointToTimespec (std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > tp) noexcept
 Convert from std::chrono::time_point to struct timespec. More...