3#ifndef TETL_CHRONO_TIME_POINT_HPP
4#define TETL_CHRONO_TIME_POINT_HPP
20template <
typename Clock,
typename Duration =
typename Clock::duration>
52 template <
typename Dur2>
55 : _d{t.time_since_epch()}
118template <
typename Clock,
typename Dur1,
typename Dur2>
122 return lhs.time_since_epoch() == rhs.time_since_epoch();
127template <
typename Clock,
typename Dur1,
typename Dur2>
131 return lhs.time_since_epoch() < rhs.time_since_epoch();
136template <
typename Clock,
typename Dur1,
typename Dur2>
140 return lhs.time_since_epoch() <= rhs.time_since_epoch();
145template <
typename Clock,
typename Dur1,
typename Dur2>
149 return lhs.time_since_epoch() > rhs.time_since_epoch();
154template <
typename Clock,
typename Dur1,
typename Dur2>
158 return lhs.time_since_epoch() >= rhs.time_since_epoch();
167template <
typename Clock,
typename Duration1,
typename Duration2>
constexpr auto operator<(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> bool
Compares two durations. Compares lhs to rhs, i.e. compares the number of ticks for the type common to...
Definition duration.hpp:316
constexpr auto operator>(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> bool
Compares two durations. Compares lhs to rhs, i.e. compares the number of ticks for the type common to...
Definition duration.hpp:333
constexpr auto operator==(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> bool
Compares two durations. Checks if lhs and rhs are equal, i.e. the number of ticks for the type common...
Definition duration.hpp:299
constexpr auto operator<=(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> bool
Compares two durations. Compares lhs to rhs, i.e. compares the number of ticks for the type common to...
Definition duration.hpp:325
constexpr auto operator>=(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> bool
Compares two durations. Compares lhs to rhs, i.e. compares the number of ticks for the type common to...
Definition duration.hpp:341
Definition adjacent_find.hpp:8
constexpr bool is_convertible_v
Definition is_convertible.hpp:46
Class template etl::chrono::duration represents a time interval.
Definition duration.hpp:31
static constexpr auto min() noexcept -> duration
Returns a duration with the lowest possible value.
Definition duration.hpp:106
typename Period::type period
A etl::ratio representing the tick period (i.e. the number of seconds per tick).
Definition duration.hpp:37
Rep rep
Rep, an arithmetic type representing the number of ticks.
Definition duration.hpp:33
static constexpr auto max() noexcept -> duration
Returns a duration with the largest possible value.
Definition duration.hpp:112
Class template time_point represents a point in time. It is implemented as if it stores a value of ty...
Definition time_point.hpp:21
constexpr time_point(time_point< clock, Dur2 > const &t)
Definition time_point.hpp:54
constexpr auto time_since_epoch() const noexcept -> duration
Definition time_point.hpp:61
static constexpr auto max() noexcept -> time_point
Definition time_point.hpp:110
typename duration::rep rep
Definition time_point.hpp:30
constexpr time_point() noexcept=default
Constructs a new time_point from one of several optional data sources. Default constructor,...
static constexpr auto min() noexcept -> time_point
Definition time_point.hpp:107
constexpr auto operator++(int) noexcept -> time_point
Definition time_point.hpp:92
constexpr auto operator++() noexcept -> time_point &
Definition time_point.hpp:84
typename duration::period period
Definition time_point.hpp:34
etl::chrono::local_t clock
Definition time_point.hpp:23
constexpr auto operator+=(duration const &d) noexcept -> time_point &
Definition time_point.hpp:67
constexpr auto operator--() noexcept -> time_point &
Definition time_point.hpp:96
constexpr auto operator--(int) noexcept -> time_point
Definition time_point.hpp:104
constexpr auto operator-=(duration const &d) noexcept -> time_point &
Definition time_point.hpp:76
Duration duration
Definition time_point.hpp:26
chrono::time_point< Clock, common_type_t< Duration1, Duration2 > > type
Definition time_point.hpp:169
Determines the common type among all types T..., that is the type all T... can be implicitly converte...
Definition common_type.hpp:18