zpp
Zephyr C++20 Framework
clock.hpp File Reference
#include <zephyr/kernel.h>
#include <zephyr/sys_clock.h>
#include <zephyr/sys/__assert.h>
#include <chrono>
#include <limits>
Include dependency graph for clock.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zpp::uptime_clock
 Clock measuring elapsed time since the system booted. More...
 
class  zpp::cycle_clock
 Clock representing the system’s hardware clock. More...
 

Namespaces

 zpp
 

Functions

template<class T_Rep , class T_Period >
constexpr k_ticks_t zpp::to_tick (const std::chrono::duration< T_Rep, T_Period > &d) noexcept
 convert a duration to tick More...
 
template<class T_Rep , class T_Period >
constexpr k_timeout_t zpp::to_timeout (const std::chrono::duration< T_Rep, T_Period > &d) noexcept
 convert a duration to tick More...