absl::SimulatedClock::AdvanceTime

Advances the simulated time by the specified duration. Wakes up any threads whose sleeps have now expired. Returns the number of woken threads.

Synopsis

Declared in <absl/time/simulated_clock.h>

int64_t
AdvanceTime(absl::Duration d);

Return Value

The number of woken threads.

Parameters

NameDescription
dThe duration to advance the simulated time by.