CounterTiming constructor

CounterTiming([
  1. String? counter,
  2. ICounterTimingCallback? callback
])

Creates a new instance of the timing callback object.

  • counter an associated counter name
  • callback a callback that shall be called when endTiming is called.

Implementation

CounterTiming([String? counter, ICounterTimingCallback? callback])
    : _start = DateTime.now().toUtc().millisecondsSinceEpoch {
  _counter = counter;
  _callback = callback;
}