summaryrefslogtreecommitdiff
path: root/taskflow/examples
diff options
context:
space:
mode:
authorchenghuiyu <yuchenghui@unionpay.com>2017-09-05 11:54:09 +0800
committerChangBo Guo(gcb) <glongwave@gmail.com>2017-10-24 05:44:27 +0000
commitd0a2f8046251696e2f23a7689440b7b0f6e74f4d (patch)
treefde852ab1270fa8d14329b83e4730f7b293ece8d /taskflow/examples
parent8ca9a30599972a3e2d6d2cd6d5cd8e08f7496b33 (diff)
downloadtaskflow-d0a2f8046251696e2f23a7689440b7b0f6e74f4d.tar.gz
Remove class StopWatch from timing
In new release timeutils.StopWatch can be used from oslo.uitls, so it was deprecated for removal in timing.py Change-Id: I138b8d276998a4ea2537966767cbd14f96daf757 Closes-Bug: #1715043
Diffstat (limited to 'taskflow/examples')
-rw-r--r--taskflow/examples/99_bottles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/examples/99_bottles.py b/taskflow/examples/99_bottles.py
index 89ed6fb..ee337fb 100644
--- a/taskflow/examples/99_bottles.py
+++ b/taskflow/examples/99_bottles.py
@@ -37,8 +37,8 @@ from taskflow.patterns import linear_flow as lf
from taskflow.persistence import backends as persistence_backends
from taskflow.persistence import models
from taskflow import task
-from taskflow.types import timing
+from oslo_utils import timeutils
from oslo_utils import uuidutils
# Instructions!
@@ -122,7 +122,7 @@ def run_conductor(only_run_once=False):
print("Event '%s' has been received..." % event)
print("Details = %s" % details)
if event.endswith("_start"):
- w = timing.StopWatch()
+ w = timeutils.StopWatch()
w.start()
base_event = event[0:-len("_start")]
event_watches[base_event] = w