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

when uses time.clock,there are always mistakes

?? wrote:

> The problem like this:

> t = time.clock()
> AttributeError: module 'time' has no attribute 'clock'


The function time.clock() has been removed, after having been deprecated 
since Python 3.3: use time.perf_counter() or time.process_time() instead, 
depending on your requirements, to have well-defined behavior. (Contributed 
by Matthias Bussonnier in bpo-36895.)