pip_services3_components.count.ICounterTimingCallback module

pip_services3_components.counters.ICounterTimingCallback

Interface for performance timing callbacks.

copyright

Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.

license

MIT, see LICENSE for more details.

class pip_services3_components.count.ICounterTimingCallback.ICounterTimingCallback

Bases: abc.ABC

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

See CounterTiming

end_timing(name: str, elapsed: float)

Ends measurement of execution elapsed time and updates specified counter.

Parameters
  • name – a counter name

  • elapsed – execution elapsed time in milliseconds to update the counter.