Ask Your Question

Revision history [back]

click to hide/show revision 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)