Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Timing in Python

📅 2012-Apr-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

import time
start = time.clock()
# Do something here
end = time.clock()
print( "Time: ", end - start, " seconds" )