Currently I just add the following lines around my code:
import time
start_time = time.time()
# my code here
print "time elapsed: {:.2f}s".format(time.time() - start_time)
Is it possible to achieve the same without adding code to every script I want to time? Either adding something in run configuration or using a plugin?