Skip to content

Commit

Permalink
Merge pull request #319 from QuantEcon/fix-timing-docstrings
Browse files Browse the repository at this point in the history
fix timing utility docstrings for tic toc tac
  • Loading branch information
albop authored Aug 6, 2017
2 parents 1b5dc19 + 27439cf commit 64d964c
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 64d964c

Please sign in to comment.