[#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 `<balm_metricsample.h>` Create an empty sample group. By default, the `records()` address is 0, `numRecords()` is 0, and the `elapsedTime()` is the default‐ constructed `bsls::TimeInterval`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricSampleGroup/2constructor-00.adoc[MetricSampleGroup](); ---- [.small]#xref:BloombergLP/balm/MetricSampleGroup/2constructor-00.adoc[_» more..._]# Create a sample group having the same (in‐core) value as the specified `original` sample group. [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..._]# Create a sample group from the specified records and elapsed time. [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..._]# == 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]#