absl::AbsDuration

Returns the absolute value of a duration.

Synopsis

Declared in <absl/time/time.h>

Duration
AbsDuration(Duration d);

Return Value

The absolute value of d.

Parameters

NameDescription
dThe duration to take the absolute value of.