PEP 418: typo
This commit is contained in:
parent
542e684d78
commit
d81d6016ba
|
@ -39,7 +39,7 @@ portable behaviour (ex: include time spend during sleep).
|
||||||
To measure CPU time, Python does not provide directly a portable
|
To measure CPU time, Python does not provide directly a portable
|
||||||
function. ``time.clock()`` can be used on Unix, but it has a bad
|
function. ``time.clock()`` can be used on Unix, but it has a bad
|
||||||
precision. ``resource.getrusage()`` or ``os.times()`` can also be
|
precision. ``resource.getrusage()`` or ``os.times()`` can also be
|
||||||
used on Unix, but they requires to compute the sum of time
|
used on Unix, but they require to compute the sum of time
|
||||||
spent in kernel space and user space. The new ``time.process_time()``
|
spent in kernel space and user space. The new ``time.process_time()``
|
||||||
function acts as a portable counter that always measures CPU time
|
function acts as a portable counter that always measures CPU time
|
||||||
(doesn't include time elapsed during sleep) and has the best available
|
(doesn't include time elapsed during sleep) and has the best available
|
||||||
|
|
Loading…
Reference in New Issue