From 2e3cfc655cd334a3d400db855378278c1cfecdc5 Mon Sep 17 00:00:00 2001 From: lumbric Date: Sat, 23 Mar 2019 17:17:15 +0100 Subject: [PATCH] Fix minor mistake in README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 8d5be27..03a7546 100644 --- a/README.rst +++ b/README.rst @@ -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)