def call(self, func, *args, **kwargs):
        """
        Alternative way to time a simple function call using condensed syntax.

        Returns:
            self (timerit.Timerit): Use `min`, or `mean` to get a scalar. Use
                `print` to output a report to stdout.

        Example:
            >>> import math
            >>> time = Timerit(num=10).call(math.factorial, 50).min()
            >>> assert time > 0
        """
        for timer in self:
            with timer:
                func(*args, **kwargs)
        return self
def call ( self , func , * args , ** kwargs ) : for timer in self : with timer : func ( * args , ** kwargs ) return self
Alternative way to time a simple function call using condensed syntax.

        Returns:
            self (timerit.Timerit): Use `min`, or `mean` to get a scalar. Use
                `print` to output a report to stdout.

        Example:
            >>> import math
            >>> time = Timerit(num=10).call(math.factorial, 50).min()
            >>> assert time > 0