summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2015-06-26 16:08:19 -0700
committerJoshua Harlow <harlowja@gmail.com>2015-07-12 18:44:57 -0700
commit9478226141ad148fe55e40d28de1721f048f6c05 (patch)
treeae12d043c325eef4f85211e70b6f0061fa3a5c4a /tools
parent27272a2aa70b56182b67a06d3707430e86a0ccde (diff)
downloadtaskflow-9478226141ad148fe55e40d28de1721f048f6c05.tar.gz
Provide a deprecated alias for the now removed stop watch class
This allows those who were using it to still continue using it until 2.0 where it will be removed; this makes it possible for those users to get off that code in a way that will be easily do-able (without totally breaking there code-bases, until we do that in the 2.0 release). This also removes all internal usage of that stop watch class so that the library itself will not reference it anymore. Change-Id: If313d8e7b9bdc8741db2e2e1dfb381aa3260b971
Diffstat (limited to 'tools')
-rw-r--r--tools/speed_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/speed_test.py b/tools/speed_test.py
index 45bca78..f9da37a 100644
--- a/tools/speed_test.py
+++ b/tools/speed_test.py
@@ -20,13 +20,13 @@ import argparse
import cProfile as profiler
import pstats
+from oslo_utils import timeutils
import six
from six.moves import range as compat_range
from taskflow import engines
from taskflow.patterns import linear_flow as lf
from taskflow import task
-from taskflow.types import timing
def print_header(name):
@@ -68,7 +68,7 @@ class ProfileIt(object):
class TimeIt(object):
def __init__(self, name, args):
- self.watch = timing.StopWatch()
+ self.watch = timeutils.StopWatch()
self.name = name
self.args = args