StopCountingOperation operation

Fully qualified name: Std.Diagnostics.StopCountingOperation

operation StopCountingOperation<'In, 'Out>(callable : ('In => 'Out)) : Int

Summary

Stops counting the number of times the given operation is called and returns the count. Fails if the operation was not being counted.

Description

This operation allows you to stop counting the number of times a given operation is called and returns the count. If the operation was not being counted, it triggers a runtime failure.

Input

callable

The operation whose count will be returned.

Output

The number of times the operation was called since the last call to StartCountingOperation.