absl::TimeFromTimespec

Converts a timespec to an absl::Time.

Synopsis

Declared in <absl/time/time.h>

Time
TimeFromTimespec(timespec ts);

Return Value

The equivalent time.

Parameters

NameDescription
tsThe timespec to convert.