summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-28 18:41:26 +0000
committerGerrit Code Review <review@openstack.org>2016-06-28 18:41:26 +0000
commit8da9b4022fbe7cc957f7c748edc01ac703aa00c3 (patch)
tree44faa4285e146f1ee94db2911d22821823b59f6e
parent893ac87468777513180ad0e2a4ce47a525cf90a4 (diff)
parent53e70e8f5af402e0615c2f953ad0454ef4d9adef (diff)
downloadoslo-utils-8da9b4022fbe7cc957f7c748edc01ac703aa00c3.tar.gz
Merge "Add basic docstrings to stopwatch has_started/stopped methods"3.15.0
-rw-r--r--oslo_utils/timeutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/oslo_utils/timeutils.py b/oslo_utils/timeutils.py
index 4509da6..2b38ead 100644
--- a/oslo_utils/timeutils.py
+++ b/oslo_utils/timeutils.py
@@ -516,9 +516,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):