Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

Commit

Permalink
Added a comment for time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Cohen committed Mar 2, 2015
1 parent 22637fc commit 5dd1925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions appmetrics/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def raw_data(self):

@contextmanager
def time(self):
"""A context manager which times execution of a piece of code"""
t1 = time.time()
yield
t2 = time.time()
Expand Down

0 comments on commit 5dd1925

Please sign in to comment.