Share via


duration::operator= Operator

Reduces the stored tick count modulo a specified value.

duration& operator%=(
   const rep& Div
);
duration& operator%=(
   const duration& Div
);

Parameters

  • Div
    For the first method, Div represents a tick count. For the second method, Div is a duration object that contains a tick count.

Return Value

The duration object after the modulo operation is performed.

Requirements

Header: chrono

Namespace: std::chrono

See Also

Reference

duration Class

<chrono>