tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
chrono.cpp
#include <
etl/chrono.hpp
>
chrono.hpp
// SPDX-License-Identifier: BSL-1.0
#undef NDEBUG
#include <
etl/cassert.hpp
>
#include <
etl/chrono.hpp
>
auto
main() ->
int
{
using namespace
etl::literals
;
assert
(
etl::chrono::hours
(1) == 1_h);
assert
(
etl::chrono::hours
(1) == 60_min);
return
0;
}
cassert.hpp
assert
#define assert(...)
Definition
cassert.hpp:19
etl::chrono::hours
duration< int_least32_t, ratio< 3600 > > hours
Signed integer type of at least 23 bits.
Definition
duration.hpp:362
etl::literals
Definition
day.hpp:116
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0