Mega Code Archive

 
Categories / Python Tutorial / Buildin Module
 

Time clock() returns the current CPU time as a floating-point number that can be used for various timing functions

import time print time.clock()