clock2() -> (t_user,t_system) Similar to clock(), but return a tuple of user/system times.
()
| 52 | return u+s |
| 53 | |
| 54 | def clock2(): |
| 55 | """clock2() -> (t_user,t_system) |
| 56 | |
| 57 | Similar to clock(), but return a tuple of user/system times.""" |
| 58 | return resource.getrusage(resource.RUSAGE_SELF)[:2] |
| 59 | except ImportError: |
| 60 | # There is no distinction of user/system time under windows, so we just use |
| 61 | # time.perff_counter() for everything... |
no outgoing calls
no test coverage detected