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

Name

Description

now

The current time, used to compute the elapsed interval.

Created with MrDocs