proxygen
Chrono.h File Reference
#include <chrono>
#include <stdexcept>
#include <type_traits>
#include <folly/Portability.h>
#include <folly/lang/Exception.h>
#include <folly/portability/Time.h>

Go to the source code of this file.

Classes

struct  folly::chrono::detail::is_duration< T >
 
struct  folly::chrono::detail::is_duration< std::chrono::duration< Rep, Period > >
 
struct  folly::chrono::coarse_steady_clock
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::chrono
 
 folly::chrono::detail
 

Functions

template<typename To , typename Duration >
constexpr To folly::chrono::detail::ceil_impl (Duration const &d, To const &t)
 
template<typename To , typename Duration >
constexpr To folly::chrono::detail::floor_impl (Duration const &d, To const &t)
 
template<typename To , typename Diff >
constexpr To folly::chrono::detail::round_impl (To const &t0, To const &t1, Diff diff0, Diff diff1)
 
template<typename To , typename Duration >
constexpr To folly::chrono::detail::round_impl (Duration const &d, To const &t0, To const &t1)
 
template<typename To , typename Duration >
constexpr To folly::chrono::detail::round_impl (Duration const &d, To const &t0)
 
template<typename To , typename Rep , typename Period , typename = typename std::enable_if<detail::is_duration<To>::value>::type>
constexpr To folly::chrono::ceil (std::chrono::duration< Rep, Period > const &d)
 
template<typename To , typename Clock , typename Duration , typename = typename std::enable_if<detail::is_duration<To>::value>::type>
constexpr std::chrono::time_point< Clock, To > folly::chrono::ceil (std::chrono::time_point< Clock, Duration > const &tp)
 
template<typename To , typename Rep , typename Period , typename = typename std::enable_if<detail::is_duration<To>::value>::type>
constexpr To folly::chrono::floor (std::chrono::duration< Rep, Period > const &d)
 
template<typename To , typename Clock , typename Duration , typename = typename std::enable_if<detail::is_duration<To>::value>::type>
constexpr std::chrono::time_point< Clock, To > folly::chrono::floor (std::chrono::time_point< Clock, Duration > const &tp)
 
template<typename To , typename Rep , typename Period , typename = typename std::enable_if< detail::is_duration<To>::value && !std::chrono::treat_as_floating_point<typename To::rep>::value>::type>
constexpr To folly::chrono::round (std::chrono::duration< Rep, Period > const &d)
 
template<typename To , typename Clock , typename Duration , typename = typename std::enable_if< detail::is_duration<To>::value && !std::chrono::treat_as_floating_point<typename To::rep>::value>::type>
constexpr std::chrono::time_point< Clock, To > folly::chrono::round (std::chrono::time_point< Clock, Duration > const &tp)