##// END OF EJS Templates
Update comments...
ammarmallik -
Show More
@@ -58,12 +58,12 try:
58 return resource.getrusage(resource.RUSAGE_SELF)[:2]
58 return resource.getrusage(resource.RUSAGE_SELF)[:2]
59 except ImportError:
59 except ImportError:
60 # There is no distinction of user/system time under windows, so we just use
60 # There is no distinction of user/system time under windows, so we just use
61 # time.clock() for everything...
61 # time.perff_counter() for everything...
62 clocku = clocks = clock = time.perf_counter
62 clocku = clocks = clock = time.perf_counter
63 def clock2():
63 def clock2():
64 """Under windows, system CPU time can't be measured.
64 """Under windows, system CPU time can't be measured.
65
65
66 This just returns clock() and zero."""
66 This just returns perf_counter() and zero."""
67 return time.perf_counter(),0.0
67 return time.perf_counter(),0.0
68
68
69
69
General Comments 0
You need to be logged in to leave comments. Login now