BloombergLP::balm::StopwatchScopedGuard::StopwatchScopedGuard

Constructors

Synopses

Declared in <balm_stopwatchscopedguard.h>

Initialize this scoped guard to record an elapsed time to the specified metricId.

StopwatchScopedGuard(
    MetricId const& metricId,
    MetricsManager* manager = 0);
» more...

Initialize this scoped guard to record elapsed time using the specified collector.

explicit
StopwatchScopedGuard(
    Collector* collector,
    Units timeUnits = k_SECONDS);
» more...

Initialize this scoped guard to record elapsed time using the specified metric.

explicit
StopwatchScopedGuard(
    Metric* metric,
    Units timeUnits = k_SECONDS);
» more...

Initialize this scoped guard to record an elapsed time to the specified metricId using the specified timeUnits.

StopwatchScopedGuard(
    MetricId const& metricId,
    Units timeUnits,
    MetricsManager* manager = 0);
» more...

Initialize this scoped guard to record an elapsed time to the metric identified by the specified category and name.

StopwatchScopedGuard(
    char const* category,
    char const* name,
    MetricsManager* manager = 0);
» more...

Initialize this scoped guard to record an elapsed time to the metric identified by the specified category and name using the specified timeUnits.

StopwatchScopedGuard(
    char const* category,
    char const* name,
    Units timeUnits,
    MetricsManager* manager = 0);
» more...

Parameters

NameDescription
metricIdidentity of the metric to record
managermetrics manager used to provide the collector (optional)
collectorcollector used to record elapsed time
timeUnitsunits in which to report elapsed time (optional)
metricmetric used to record elapsed time
categorynull-terminated metric category name
namenull-terminated metric name