libstdc++
std::chrono Namespace Reference

Classes

struct  duration
 
struct  duration_values
 
struct  steady_clock
 
struct  system_clock
 
struct  time_point
 
struct  treat_as_floating_point
 

Typedefs

using high_resolution_clock = system_clock
 
using hours = duration< int64_t, ratio< 3600 > >
 
using microseconds = duration< int64_t, micro >
 
using milliseconds = duration< int64_t, milli >
 
using minutes = duration< int64_t, ratio< 60 > >
 
using nanoseconds = duration< int64_t, nano >
 
using seconds = duration< int64_t >
 

Functions

template<typename _Rep , typename _Period >
constexpr enable_if_t< numeric_limits< _Rep >::is_signed, duration< _Rep, _Period > > abs (duration< _Rep, _Period > __d)
 
template<typename _ToDur , typename _Rep , typename _Period >
constexpr __enable_if_is_duration< _ToDur > ceil (const duration< _Rep, _Period > &__d)
 
template<typename _ToDur , typename _Clock , typename _Dur >
constexpr enable_if_t< __is_duration< _ToDur >::value, time_point< _Clock, _ToDur > > ceil (const time_point< _Clock, _Dur > &__tp)
 
template<typename _ToDur , typename _Rep , typename _Period >
constexpr __enable_if_is_duration< _ToDur > duration_cast (const duration< _Rep, _Period > &__d)
 
template<typename _ToDur , typename _Rep , typename _Period >
constexpr __enable_if_is_duration< _ToDur > floor (const duration< _Rep, _Period > &__d)
 
template<typename _ToDur , typename _Clock , typename _Dur >
constexpr enable_if_t< __is_duration< _ToDur >::value, time_point< _Clock, _ToDur > > floor (const time_point< _Clock, _Dur > &__tp)
 
template<typename _ToDur , typename _Rep , typename _Period >
constexpr enable_if_t< __and_< __is_duration< _ToDur >, __not_< treat_as_floating_point< typename _ToDur::rep > > >::value, _ToDur > round (const duration< _Rep, _Period > &__d)
 
template<typename _ToDur , typename _Clock , typename _Dur >
constexpr enable_if_t< __and_< __is_duration< _ToDur >, __not_< treat_as_floating_point< typename _ToDur::rep > > >::value, time_point< _Clock, _ToDur > > round (const time_point< _Clock, _Dur > &__tp)
 
template<typename _ToDur , typename _Clock , typename _Dur >
constexpr enable_if< __is_duration< _ToDur >::value, time_point< _Clock, _ToDur > >::type time_point_cast (const time_point< _Clock, _Dur > &__t)
 

Variables

template<typename _Rep >
constexpr bool treat_as_floating_point_v
 

Detailed Description

ISO C++ 2011 namespace for date and time utilities.