std::chrono::duration::max

static constexpr duration max(); Returns a duration with the largest possible value. If the representation rep of the duration requires some other implementation to return a maximum-length duration, std::chrono::duration_values can be specialized to return the desired value. Parameters (none). Return value returns std::chrono::duration(std::chrono::duration_values<rep>::max()). See also zero [static] returns the special duration value zero (public static member func

std::chrono::duration::duration

constexpr duration() = default; (1) (since C++11) duration( const duration& ) = default; (2) (since C++11) template< class Rep2 > constexpr explicit duration( const Rep2& r ); (3) (since C++11) template< class Rep2, class Period2 > constexpr duration( const duration<Rep2,Period2>& d ); (4) (since C++11) Constructs a new duration from one of several optional data sources. 1) The default constructor is defaulted. 2) The copy constructor is

std::chrono::duration::count

constexpr rep count() const; Returns the number of ticks for this duration. Parameters (none). Return value The number of ticks for this duration. Example #include <chrono> #include <iostream> int main() { std::chrono::milliseconds ms{3}; // 3 milliseconds // 6000 microseconds constructed from 3 milliseconds std::chrono::microseconds us = 2*ms; // 30Hz clock using fractional ticks std::chrono::duration<double, std::ratio<1, 30>> hz3

std::chrono::duration

Defined in header <chrono> template< class Rep, class Period = std::ratio<1> > class duration; (since C++11) Class template std::chrono::duration represents a time interval. It consists of a count of ticks of type Rep and a tick period, where the tick period is a compile-time rational constant representing the number of seconds from one tick to the next. The only data stored in a duration is a tick count of type Rep. If Rep is floating point, then the

std::chrono::ceil(std::chrono::time_point)

Defined in header <chrono> template <class ToDuration, class Clock, class Duration> constexpr time_point<Clock, ToDuration> ceil(const time_point<Clock, Duration>& tp); (since C++17) Returns the smallest time point t representable in ToDuration that is greater or equal to tp. The function does not participate in the overload resolution unless ToDuration is an instance of std::chrono::duration. Parameters tp - time point to convert Return v

std::chrono::ceil(std::chrono::duration)

Defined in header <chrono> template <class ToDuration, class Rep, class Period> constexpr ToDuration ceil(const duration<Rep, Period>& d); (since C++17) Returns the smallest duration t representable in ToDuration that is greater or equal to d. The function does not participate in the overload resolution unless ToDuration is an instance of std::chrono::duration. Parameters d - duration to convert Return value d rounded up to a duration of type T

std::chrono::abs(std::chrono::duration)

Defined in header <chrono> template <class Rep, class Period> constexpr duration<Rep, Period> abs(duration<Rep, Period> d) (since C++17) Returns the absolute value of the duration d. Specifically, if d >= d.zero(), return d, otherwise return -d. The function does not participate in the overload resolution unless std::numeric_limits<Rep>::is_signed is true. Parameters d - duration Return value Absolute value of d. Possible implement

std::chi_squared_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

std::chi_squared_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.

std::chi_squared_distribution::n

RealType n() const; (since C++11) Returns the n parameter the distribution was constructed with. It specifies the degrees of freedom of the distribution. The default value is 1.0. Parameters (none). Return value The n distribution parameter. See also param gets or sets the distribution parameter object (public member function)