Returns a string representing the duration in the form "72h3m0.5s". Returns "inf" or "‐inf" for +/‐ InfiniteDuration().

Synopsis

Declared in <absl/time/time.h>

std::string
FormatDuration(Duration d);

Return Value

The formatted duration string.

Parameters

Name

Description

d

The duration to format.

Created with MrDocs