Timer constructor
Timer([
- Reservoir? reservoir,
- Clock _clock = const Clock()
Creates a new Timer that uses the given reservoir
and clock
.
Implementation
Timer([
Reservoir? reservoir,
this._clock = const Clock(),
]) {
_meter = Meter(_clock);
_histogram = Histogram(reservoir ?? ExponentiallyDecayingReservoir());
}