| 1 | initial version |
You can use time module for that purpose - like this:
import time
start_time = time.time()
# ...whatever code...
end_time = time.time()
print('Elapsed:', end_time - start_time)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.