run-tests: spread and document the content of time tuple
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 07 May 2015 23:25:13 -0700
changeset 24984 5195322b9f80
parent 24983 277bc9b0b4bd
child 24985 20bff5d09018
run-tests: spread and document the content of time tuple The spreading will make future modification clearer. The documentation improve code readability.
tests/run-tests.py
--- a/tests/run-tests.py	Thu May 07 23:16:57 2015 -0700
+++ b/tests/run-tests.py	Thu May 07 23:25:13 2015 -0700
@@ -1308,8 +1308,11 @@
 
         starttime = test.started
         endtime = test.stopped
-        self.times.append((test.name, endtime[2] - starttime[2],
-                    endtime[3] - starttime[3], endtime[4] - starttime[4]))
+        self.times.append((test.name,
+                           endtime[2] - starttime[2], # user space CPU time
+                           endtime[3] - starttime[3], # sys  space CPU time
+                           endtime[4] - starttime[4], # real time
+                           ))
 
         if interrupted:
             iolock.acquire()