From 5dc00dc59037a6df604617f0243d9489d59e0135 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Thu, 3 Oct 2002 22:38:07 +0000 Subject: trying to improve timing accuracy to figure out why python identity is 3x faster than the C one... Original commit message from CVS: trying to improve timing accuracy to figure out why python identity is 3x faster than the C one... --- examples/gst/ilat.py | 3 ++- examples/gstreamer/ilat.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/gst/ilat.py b/examples/gst/ilat.py index 664d391..d2553af 100755 --- a/examples/gst/ilat.py +++ b/examples/gst/ilat.py @@ -90,7 +90,8 @@ def check(f, n, b): start = time.time() ret = filter(pipe) - print '%s b:%d i:%d t:%f' % (f, b, n, time.time() - start) + end = time.time() + print '%s b:%d i:%d t:%f' % (f, b, n, end - start) return ret def main(): diff --git a/examples/gstreamer/ilat.py b/examples/gstreamer/ilat.py index 664d391..d2553af 100755 --- a/examples/gstreamer/ilat.py +++ b/examples/gstreamer/ilat.py @@ -90,7 +90,8 @@ def check(f, n, b): start = time.time() ret = filter(pipe) - print '%s b:%d i:%d t:%f' % (f, b, n, time.time() - start) + end = time.time() + print '%s b:%d i:%d t:%f' % (f, b, n, end - start) return ret def main(): -- cgit v1.2.3