[#BloombergLP-bslmt-MeteredMutex-resetMetrics]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/MeteredMutex.adoc[MeteredMutex]::resetMetrics
:relfileprefix: ../../../
:mrdocs:

Reset the wait and hold time to zero and record the current time&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;meteredmutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resetMetrics();
----

== Description

All subsequent calls (that are made before a subsequent call to `resetMetrics`) to `waitTime` (or `holdTime`) will return the wait (or hold) time, accumulated since this call&period; Also, all subsequent calls (that are made before a subsequent call to `resetMetrics`) to `lastResetTime` will return the time of this call&period;


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