[#BloombergLP-balb-RateLimiter-getStatistics]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/RateLimiter.adoc[RateLimiter]::getStatistics
:relfileprefix: ../../../
:mrdocs:

Load submitted and unused unit statistics for this rate limiter&period;

== Synopsis

Declared in `&lt;balb&lowbar;ratelimiter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
getStatistics(
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* submittedUnits,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* unusedUnits) const;
----

== Description

Load, into the specified `submittedUnits` and the specified `unusedUnits` respectively, the numbers of submitted units and the number of unused units for this rate limiter from the `statisticsCollectionStartTime` to the &apos;lastUpdateTime&period; The number of unused units is the difference between the number of units that could have been consumed at the sustained rate and the number of units actually submitted for the time period&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *submittedUnits*
| destination for the submitted&hyphen;unit count
| *unusedUnits*
| destination for the unused&hyphen;unit count
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
