[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23510] branches/soc-2009-jaguarandi/test/ html.py: Use user time as reference time instead of wall time
Andre Susano Pinto
andresusanopinto at gmail.com
Sun Sep 27 15:47:04 CEST 2009
Revision: 23510
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23510
Author: jaguarandi
Date: 2009-09-27 15:47:04 +0200 (Sun, 27 Sep 2009)
Log Message:
-----------
Use user time as reference time instead of wall time
Modified Paths:
--------------
branches/soc-2009-jaguarandi/test/html.py
Modified: branches/soc-2009-jaguarandi/test/html.py
===================================================================
--- branches/soc-2009-jaguarandi/test/html.py 2009-09-27 11:00:35 UTC (rev 23509)
+++ branches/soc-2009-jaguarandi/test/html.py 2009-09-27 13:47:04 UTC (rev 23510)
@@ -94,7 +94,8 @@
def get_runtime(conf):
run = test.get(conf[0],conf[1],case)
if run != None and run["result"] != test.TestRun.RESULT_NONE:
- return run["time"]
+# return run["time"]
+ return run["getrusage"]["utime"]
return None
# reference_time = min( map(get_runtime, valid_configs) )
@@ -117,7 +118,8 @@
# comparison result
- ref = (reference_time/run["time"])
+# ref = (reference_time/run["time"])
+ ref = (reference_time/run["getrusage"]["utime"])
cmp = "cmp_equal"
sign = ""
if ref < 1:
More information about the Bf-blender-cvs
mailing list