Returns the current time, expressed as a count of nanoseconds since the Unix Epoch (https://en.wikipedia.org/wiki/Unix_time). Prefer absl::Now() instead for all but the most performance‐sensitive cases (i.e. when you are calling this function hundreds of thousands of times per second).

Synopsis

Declared in <absl/time/clock.h>

int64_t
GetCurrentTimeNanos();

Return Value

The current time as nanoseconds since the Unix Epoch.

Created with MrDocs