std::chrono::duration - Man Page

chrono::duration represents a distance between two points in time

Synopsis

Public Types

using period
using rep

Public Member Functions

template<typename _Rep2 , typename  = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __not_<__is_float<_Rep2>>>>> constexpr duration (const _Rep2 &__rep)
duration (const duration &)=default
template<typename _Rep2 , typename _Period2 , typename  = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>,       __and_<__is_harmonic<_Period2>,      __not_<__is_float<_Rep2>>>>>> constexpr duration (const duration< _Rep2, _Period2 > &__d)
constexpr rep count () const
template<typename _Rep2  = rep> constexpr __enable_if_t<!treat_as_floating_point< _Rep2 >::value, duration & > operator%= (const duration &__d)
template<typename _Rep2  = rep> constexpr __enable_if_t<!treat_as_floating_point< _Rep2 >::value, duration & > operator%= (const rep &__rhs)
constexpr duration & operator*= (const rep &__rhs)
constexpr duration< typename common_type< rep >::type, period > operator+ () const
constexpr duration & operator++ ()
constexpr duration operator++ (int)
constexpr duration & operator+= (const duration &__d)
constexpr duration< typename common_type< rep >::type, period > operator- () const
constexpr duration & operator-- ()
constexpr duration operator-- (int)
constexpr duration & operator-= (const duration &__d)
constexpr duration & operator/= (const rep &__rhs)
duration & operator= (const duration &)=default

Static Public Member Functions

static constexpr duration max () noexcept
static constexpr duration min () noexcept
static constexpr duration zero () noexcept

Detailed Description

template<typename _Rep, typename _Period>

class std::chrono::duration< _Rep, _Period >"chrono::duration represents a distance between two points in time

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

libstdc++