diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-06-28 18:41:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-06-28 18:41:26 +0000 |
commit | 8da9b4022fbe7cc957f7c748edc01ac703aa00c3 (patch) | |
tree | 44faa4285e146f1ee94db2911d22821823b59f6e | |
parent | 893ac87468777513180ad0e2a4ce47a525cf90a4 (diff) | |
parent | 53e70e8f5af402e0615c2f953ad0454ef4d9adef (diff) | |
download | oslo-utils-8da9b4022fbe7cc957f7c748edc01ac703aa00c3.tar.gz |
Merge "Add basic docstrings to stopwatch has_started/stopped methods"3.15.0
-rw-r--r-- | oslo_utils/timeutils.py | 2 |
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): |