[#BloombergLP-balm-MetricSampleGroup-setElapsedTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup]::setElapsedTime
:relfileprefix: ../../../
:mrdocs:

Set the elapsed time (used to indicate the time span over which this object&apos;s metric records were aggregated) to the specified `elapsedTime`&period;

== Synopsis

Declared in `&lt;balm&lowbar;metricsample&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setElapsedTime(xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& elapsedTime);
----


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