Add basic docstrings to stopwatch has_started/stopped methods

This will ensure these methods get pulled into sphinx when
the docs are built for this object (so that people will know
that these methods exist and can be used).

Change-Id: I4e890a4830a976b4ea5fb8d5b57b03c20411df03
This commit is contained in:
Joshua Harlow 2016-06-24 18:29:02 -07:00 committed by Joshua Harlow
parent 3ac0253bdb
commit 53e70e8f5a
1 changed files with 2 additions and 0 deletions

View File

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