when uses time.clock,there are always mistakes

石盼 shipan76 at mail.ustc.edu.cn
Mon Feb 3 03:04:33 EST 2020


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'
  >>>
  Thanks!
  Best wishes!


More information about the Python-list mailing list