CHRONOEND function ends a stopwatch with the given name previously started with
CHRONOSTART. On top of recording the cumulative time between each start and end of the stopwatch, the number of calls of
CHRONOSTART is recorded.
To recover the associated statistics, use
If calls of
CHRONOEND with the same name are nested, only the top level one is timed but each call to
CHRONOSTART is counted. This allows the timing of recursive functions.
It is a good practice to put
CHRONOEND in the finally clause of a
TRY for the timing to work even if exceptions are thrown.