def timeit ( self , metric , func , * args , * * kwargs ) : return metrics . timeit ( metric , func , * args , * * kwargs )
check time elapsed in function python
Time execution of callable and emit metric then return result .
def timeit(self, metric, func, *args, **kwargs):
        """Time execution of callable and emit metric then return result."""
        return metrics.timeit(metric, func, *args, **kwargs)