public static member function
<chrono>

std::chrono::duration_values::zero

static constexpr Rep zero();
Zero value
Returns a tick count value of zero.

duration_values is a traits class. By default, it returns Rep(0), where Rep is the first template parameter (the type used by a duration for its internal tick count).

This function is called by duration::zero to create a zero duration object.

A specific type of tick count can specialize this template to provide a different value.

Parameters

none.

Return value

The value of a tick count of zero.
Rep is the first class template parameter, which is an arithmetic type (or a class emulating an arithmetic type).

See also