Python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
import datetime
def test():
c = 100000000
for i in range(0, c):
x = i / 10
for i in range (0, 5):
s = datetime.datetime.now()
test ()
e = datetime.datetime.now()
print e-s
0:00:10.153447
0:00:09.966268
0:00:09.965614
0:00:09.964048
0:00:09.982430
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
import datetime
def test():
c = 100000000
for i in range(0, c):
x = i / 10
for i in range (0, 5):
s = datetime.datetime.now()
test ()
e = datetime.datetime.now()
print e-s
0:00:10.153447
0:00:09.966268
0:00:09.965614
0:00:09.964048
0:00:09.982430
Комментариев нет:
Отправить комментарий