absl::ToTimespec

ToTimespec overloads

Synopses

Declared in <absl/time/time.h>

Converts an absl::Duration to a timespec.

timespec
ToTimespec(Duration d);
» more...

Converts an absl::Time to a timespec.

timespec
ToTimespec(Time t);
» more...

Return Value

The equivalent timespec.

Parameters

NameDescription
dThe duration to convert.
tThe time to convert.