beginTiming method

  1. @override
CounterTiming beginTiming(
  1. String name

Begins measurement of execution time interval. It returns CounterTiming object which has to be called at CounterTiming.endTiming to end the measurement and update the counter.

  • name a counter name of Interval type. Return a CounterTiming callback object to end timing.


CounterTiming beginTiming(String name) {
  return CounterTiming(name, this);