4#ifndef TETL_CHRONO_TIME_POINT_CAST_HPP
5#define TETL_CHRONO_TIME_POINT_CAST_HPP
7#include <etl/_chrono/duration_cast.hpp>
8#include <etl/_chrono/time_point.hpp>
13template <
typename ToDuration,
typename Clock,
typename Duration>
14 requires(detail::is_duration_v<ToDuration>)
17 using time_point_t =
time_point<Clock, ToDuration>;
18 return time_point_t(duration_cast<ToDuration>(tp.time_since_epoch()));
constexpr auto time_point_cast(time_point< Clock, Duration > const &tp) -> ToDuration
Definition time_point_cast.hpp:15
Definition adjacent_find.hpp:9
Class template time_point represents a point in time. It is implemented as if it stores a value of ty...
Definition time_point.hpp:22