Show More
@@ -61,7 +61,7 b' if resource is not None and hasattr(resource, "getrusage"):' | |||||
61 |
|
61 | |||
62 | Similar to clock(), but return a tuple of user/system times.""" |
|
62 | Similar to clock(), but return a tuple of user/system times.""" | |
63 | return resource.getrusage(resource.RUSAGE_SELF)[:2] |
|
63 | return resource.getrusage(resource.RUSAGE_SELF)[:2] | |
64 | except ImportError: |
|
64 | else: | |
65 | # There is no distinction of user/system time under windows, so we just use |
|
65 | # There is no distinction of user/system time under windows, so we just use | |
66 | # time.perff_counter() for everything... |
|
66 | # time.perff_counter() for everything... | |
67 | clocku = clocks = clock = time.perf_counter |
|
67 | clocku = clocks = clock = time.perf_counter |
General Comments 0
You need to be logged in to leave comments.
Login now