contexttimer icon indicating copy to clipboard operation
contexttimer copied to clipboard

A timer as a context manager

Results 3 contexttimer issues
Sort by recently updated
recently updated
newest added

Currently, it can only be ``` @timer() def my_func(): pass ``` But, the following code is expected to run but fail: ``` @timer def my_func(): pass ``` An fix can...

``` contexttimer/__init__.py 138: and isinstance(func_or_func_args[0], collections.Callable)): ```