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);
Initialize this scoped guard to record elapsed time using the specified collector.
explicit
StopwatchScopedGuard(
Collector* collector,
Units timeUnits = k_SECONDS);
Initialize this scoped guard to record elapsed time using the specified metric.
explicit
StopwatchScopedGuard(
Metric* metric,
Units timeUnits = k_SECONDS);
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);
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);
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);
Parameters
Name |
Description |
metricId |
identity of the metric to record |
manager |
metrics manager used to provide the collector (optional) |
collector |
collector used to record elapsed time |
timeUnits |
units in which to report elapsed time (optional) |
metric |
metric used to record elapsed time |
category |
null‐terminated metric category name |
name |
null‐terminated metric name |
Created with MrDocs