absl::Now

Returns the current time, expressed as an absl::Time absolute time value.

Synopsis

Declared in <absl/time/clock.h>

absl::Time
Now();

Description

To improve testability, consider injecting an absl::Clock and using absl::Clock::TimeNow() instead.

Return Value

The current time as an absl::Time value.