timeit

odl.util.testutils.timeit(arg)[source]

A timer decorator.

Usage:

@timeit
def myfunction(...):
    ...

@timeit('info string')
def myfunction(...):
    ...