observeDurationSync<T> method

T observeDurationSync<T>(
  1. T callback()
)

Observe the duration of callback and store it in the corresponding buckets of a histogram without labels.

Implementation

T observeDurationSync<T>(T Function() callback) {
  return _noLabelChild.observeDurationSync(callback);
}