Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brouberol committed Mar 30, 2019
1 parent 1cf13d3 commit a866f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Note that ``elapsed`` is calculated on demand, so it is possible to time sub-par
The ``contexttimer.timer`` function decorator
---------------------------------------------

You can use the ``@timer`` function decorator to measure the time execution of an entire function.
You can use the ``@timer()`` function decorator to measure the time execution of an entire function.
When the function returns its value, its execution time will be printed to the stdout (default), or to the argument logger.


Examples
""""""""
>>> @timer
>>> @timer()
... def sleep_for_2s():
... time.sleep(2)

Expand Down

0 comments on commit a866f42

Please sign in to comment.