cppx-core
Namespaces | Typedefs | Functions
chrono-util.hpp File Reference
#include <cppx-core/language/syntax/macro-use.hpp>
#include <chrono>
#include <ratio>
#include <type_traits>
Include dependency graph for chrono-util.hpp:

Go to the source code of this file.

Namespaces

 cppx
 

Typedefs

using cppx::Timer_clock = conditional_t< chrono::high_resolution_clock::is_steady, chrono::high_resolution_clock, chrono::steady_clock >
 

Functions

 cppx::CPPX_USE_STD_NAMESPACE_NAMES (chrono)
 
 cppx::CPPX_USE_STD (conditional_t, milli, micro, nano)
 
template<class Rep , class Period >
auto cppx::as_seconds (const chrono::duration< Rep, Period > duration_value) -> double
 
template<class Rep , class Period >
auto cppx::as_milliseconds (const chrono::duration< Rep, Period > duration_value) -> double
 
template<class Rep , class Period >
auto cppx::as_microseconds (const chrono::duration< Rep, Period > duration_value) -> double
 
template<class Rep , class Period >
auto cppx::as_nanoseconds (const chrono::duration< Rep, Period > duration_value) -> double