diff tests/run-tests.py @ 24984:5195322b9f80

run-tests: spread and document the content of time tuple The spreading will make future modification clearer. The documentation improve code readability.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 07 May 2015 23:25:13 -0700
parents 277bc9b0b4bd
children 0adc22a0b6b3
line wrap: on
line diff
--- 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()