util::TokenBucket::increment

Refill tokens based on elapsed time since last call. No refill occurs on the first call (establishes the time baseline).

Synopsis

Declared in <util/tokenbucket.h>

void
increment(time_point const& now);

Parameters

NameDescription
nowThe current time, used to compute the elapsed interval.