archetypal.utils.timeit

archetypal.utils.timeit(method)[source]

Use this method as a decorator on a function to calculate the time it take to complete. Uses the log() method.

Examples

>>> @timeit
>>> def myfunc():
>>>     return 'is a function'
Parameters

method (function) – A function.