Timer constructor

Timer([
  1. Reservoir? reservoir,
  2. 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());
}