diff options
author | David I. Lehn <dlehn@users.sourceforge.net> | 2002-10-03 22:38:07 +0000 |
---|---|---|
committer | David I. Lehn <dlehn@users.sourceforge.net> | 2002-10-03 22:38:07 +0000 |
commit | 5dc00dc59037a6df604617f0243d9489d59e0135 (patch) | |
tree | c31c2dd429f07954b5874227b4ed2f9644b4877c /examples | |
parent | c2cb0810d9d931c6ff21d59cecddc1874c1ca315 (diff) |
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...
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gst/ilat.py | 3 | ||||
-rwxr-xr-x | examples/gstreamer/ilat.py | 3 |
2 files changed, 4 insertions, 2 deletions
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(): |