clocku() -> floating point number Return the *USER* CPU time in seconds since the start of the process. This is done via a call to resource.getrusage, so it avoids the wraparound problems in time.clock().
()
| 24 | try: |
| 25 | import resource |
| 26 | def clocku(): |
| 27 | """clocku() -> floating point number |
| 28 | |
| 29 | Return the *USER* CPU time in seconds since the start of the process. |
| 30 | This is done via a call to resource.getrusage, so it avoids the |
| 31 | wraparound problems in time.clock().""" |
| 32 | |
| 33 | return resource.getrusage(resource.RUSAGE_SELF)[0] |
| 34 | |
| 35 | def clocks(): |
| 36 | """clocks() -> floating point number |
nothing calls this directly
no outgoing calls
no test coverage detected