absl::LogEntry::timestamp

Returns the time at which this entry was written. Captured during evaluation of LOG, but can be overridden by LOG(...).WithTimestamp(...).

Synopsis

Declared in <absl/log/log_entry.h>

absl::Time
timestamp() const;

Description

Take care not to rely on timestamps increasing monotonically, or even to rely on timestamps having any particular relationship with reality (since they can be overridden).

Return Value

The entry's timestamp.