ICounterTimingCallback

Interface for a callback to end the measurement of the execution elapsed time.

Description

The ICounterTimingCallback interface defines the method used for a callback to end the measurement of the execution elapsed time.

Methods

EndTiming

Ends measurement of execution elapsed time and updates specified counter. See also CounterTiming.EndTiming

EndTiming(ctx context.Context, name string, elapsed float32)

  • ctx: context.Context - operation context.
  • name: string - counter’s name
  • elapsed: float32 - execution elapsed time (in milliseconds) to update the counter.