python time une tâche

import time

start = time.time()
# do something
pass
end = time.time()
delta = end - start
print("took %.2f seconds to process" % delta)
dominik sobota