|
Embedded Template Library 1.0
|
#include <hh_mm_ss.h>
Public Types | |
| using | precision = etl::chrono::duration< common_type_t< typename TDuration::rep, etl::chrono::seconds::rep >, ratio< 1, etl::power< 10, fractional_width >::value > > |
| The return type for to_duration. | |
Public Member Functions | |
| ETL_STATIC_ASSERT ((etl::is_specialization< TDuration, etl::chrono::duration >::value), "TDuration is not a etl::chrono::duration type") | |
| ETL_CONSTEXPR | hh_mm_ss () ETL_NOEXCEPT |
| Default constructor. | |
| ETL_CONSTEXPR14 | hh_mm_ss (TDuration d_) ETL_NOEXCEPT |
| Construct from duration. | |
| ETL_NODISCARD ETL_CONSTEXPR14 bool | is_negative () const ETL_NOEXCEPT |
| Checks for negative duration. | |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::hours | hours () const ETL_NOEXCEPT |
| Returns the hours. | |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::minutes | minutes () const ETL_NOEXCEPT |
| Returns the minutes. | |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::seconds | seconds () const ETL_NOEXCEPT |
| Returns the seconds. | |
| ETL_NODISCARD ETL_CONSTEXPR14 precision | subseconds () const ETL_NOEXCEPT |
| Returns the subseconds. | |
| ETL_NODISCARD ETL_CONSTEXPR14 | operator precision () const ETL_NOEXCEPT |
| Returns the duration. | |
| ETL_NODISCARD ETL_CONSTEXPR14 precision | to_duration () const ETL_NOEXCEPT |
| Returns the duration. | |
Static Public Attributes | |
| static constexpr int | fractional_width = calculate_fractional_width<TDuration>::value |