import timedef num(m): t1 = time.time() for i in range(0,m): print(i+1) t2 = time.time() print(str(t2-t1))num(3)
Standard input is empty
1 2 3 7.3909759521484375e-06
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!