Skip to content

Commit

Permalink
fix timing utility docstrings for tic toc tac
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Aug 3, 2017
1 parent a82ba69 commit 27439cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quantecon/util/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def tic(self):
self.last = t

def tac(self):
"""Returns and prints time elapsed since last tic()"""
"""Returns and prints time elapsed since last
tic(), tac() or toc() whichever occured last."""

import time

Expand All @@ -48,8 +49,7 @@ def tac(self):
return elapsed

def toc(self):
"""Returns and prints time elapsed since last
tic() or tac() whichever occured last"""
"""Returns and prints time elapsed since last tic()."""

import time

Expand Down Expand Up @@ -77,5 +77,5 @@ def tac():


def toc():
"""Prints and returns elapsed time since last tic, tac or toc."""
"""Returns and prints time elapsed since last tic()."""
return __timer__.toc()

0 comments on commit 27439cf

Please # to comment.