Skip to content

Commit 7b89d40

Browse files
committed
added context manager to timer
1 parent 54f80d6 commit 7b89d40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

statsd/timer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ def stop(self, subname='total'):
9090

9191
def __enter__(self):
9292
'''
93-
Make a context manager out of self to measure time execution in a block of code.
93+
Make a context manager out of self to measure time execution in a block
94+
of code.
9495
95-
:return:
96+
:return: statsd.timer.Timer
9697
'''
9798
self.start()
9899
return self

0 commit comments

Comments
 (0)