時間測定

時間測定

python

pyhon 2

import time
t0 = time.time()

for i in range(0,100):
    print "a",

t1 = time.time()
kiroku = t1 - t0

print kiroku, " [秒]"