clock2() -> (t_user,t_system) Similar to clock(), but return a tuple of user/system times.
()
| 60 | return u+s |
| 61 | |
| 62 | def clock2() -> tuple[float, float]: |
| 63 | """clock2() -> (t_user,t_system) |
| 64 | |
| 65 | Similar to clock(), but return a tuple of user/system times.""" |
| 66 | return resource.getrusage(resource.RUSAGE_SELF)[:2] |
| 67 | |
| 68 | else: |
| 69 | # There is no distinction of user/system time under windows, so we just use |
no outgoing calls
no test coverage detected
searching dependent graphs…