The article I wrote earlier, "[PHP] Measure the time required for processing and display it in hours, minutes, and seconds" has received a good response. This time in Python.
hoge.py
#-*- using:utf-8 -*-
import time
if __name__ == '__main__':
start = time.time()
for i in range(0,11):
print "a"
elapsed_time = time.time() - start
print ("elapsed_time:{0}".format(elapsed_time) + "[sec]")
Well, what I'm doing is almost the same as in PHP.
fundamentally
(Processing time) = (Time when processing ended)-(Time when processing started)
Because the algorithm does not change (^^;)