[#BloombergLP-balm-MetricSampleGroup-2constructor-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup]::MetricSampleGroup
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create an empty sample group&period; By default, the `records()` address is 0, `numRecords()` is 0, and the `elapsedTime()` is the default&hyphen; constructed `bsls&colon;&colon;TimeInterval`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/MetricSampleGroup/2constructor-00.adoc[MetricSampleGroup]();
----

[.small]#xref:BloombergLP/balm/MetricSampleGroup/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a sample group having the same (in&hyphen;core) value as the specified `original` sample group&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/MetricSampleGroup/2constructor-03.adoc[MetricSampleGroup](xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& original);
----

[.small]#xref:BloombergLP/balm/MetricSampleGroup/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a sample group from the specified records and elapsed time&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/MetricSampleGroup/2constructor-05.adoc[MetricSampleGroup](
    xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord] const* records,
    int numRecords,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& elapsedTime);
----

[.small]#xref:BloombergLP/balm/MetricSampleGroup/2constructor-05.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| sample group to copy
| *records*
| contiguous sequence of metric records (held, not owned)
| *numRecords*
| number of records in `records`
| *elapsedTime*
| duration over which the records were collected
|===


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