Merge "Add basic docstrings to stopwatch has_started/stopped methods"

This commit is contained in:
Jenkins 2016-06-28 18:41:26 +00:00 committed by Gerrit Code Review
commit 8da9b4022f

View File

@ -516,9 +516,11 @@ class StopWatch(object):
return self.elapsed() > self._duration return self.elapsed() > self._duration
def has_started(self): def has_started(self):
"""Returns True if the watch is in a started state."""
return self._state == self._STARTED return self._state == self._STARTED
def has_stopped(self): def has_stopped(self):
"""Returns True if the watch is in a stopped state."""
return self._state == self._STOPPED return self._state == self._STOPPED
def resume(self): def resume(self):