fork(38) download
  1. import time
  2. def test(x):
  3. t1 = time.clock()
  4. a = 0
  5. for i in range(x):
  6. a += 1
  7. t2 = time.clock()
  8. print("Time for {} was {}".format(x, t2 - t1))
  9. return x
  10.  
  11. print(test(100000000))
Success #stdin #stdout 4.61s 9380KB
stdin
Standard input is empty
stdout
Time for 100000000 was 4.570829
100000000