[#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 containing the specified sequence of `records` of specified length `numRecords`, recorded over a period whose duration is the specified `elapsedTime`. The behavior is undefined unless `0 <= numRecords` and `records` points to a contiguous sequence of (at least) `numRecords` metric records. Note that the contents of `records` is _not_ copied and the supplied array must remain valid for the productive lifetime of this object or until the records are set to a different sequence by calling the `setRecords` manipulator. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#