python版GetTickCount()

time.clock()

return the current processor time as a floating point number expressed in seconds.

即返回一个浮点数,精度是毫秒



time.sleep(2.5)
y = time.clock()
print y - x

返回值
2.4998947806
原文地址:https://www.cnblogs.com/mmix2009/p/3229252.html