timeit

modcma.utils.timeit(func)

Decorator function for timing the excecution of a function.

Parameters

func (typing.Callable) – The function to be timed

Returns

a wrapped function

Return type

typing.Callable