codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

when uses time.clock,there are always mistakes


On 03/02/2020 08:04, ?? wrote:
> Hello !
> ?The problem like this:
> ?    		================================ RESTART: Shell ================================
> ??>>> import time
> ??>>> t = time.clock()
> ??Traceback (most recent call last):
> ?  			File "<pyshell#5>", line 1, in <module>
> ?  			  t = time.clock()
> ??AttributeError: module 'time' has no attribute 'clock'

It is correct, there is no time.clock() function.  The documentation is 
here: https://docs.python.org/3/library/time.html

-- 
Rhodri James *-* Kynesim Ltd