[#BloombergLP-balb-RateLimiter-updateState] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/RateLimiter.adoc[RateLimiter]::updateState :relfileprefix: ../../../ :mrdocs: Set the `lastUpdateTime` of this rate limiter to the specified `currentTime`. If the `currentTime` is after `lastUpdateTime`, then recalculate number of units available for consumption based on the `peakRate`, `sustainedRate` and the time interval between `lastUpdateTime` and `currentTime`. If `currentTime` is before `statisticsCollectionStartTime`, set it' to `currentTime`. == Synopsis Declared in `<balb_ratelimiter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void updateState(xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& currentTime); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#