mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 12:46:53 +08:00
12 lines
187 B
Python
12 lines
187 B
Python
![]() |
from time import process_time as clock
|
||
|
|
||
|
start = clock()
|
||
|
|
||
|
list = []
|
||
|
for i in range(10000000): list.append(i)
|
||
|
sum = 0
|
||
|
for i in list: sum += i
|
||
|
print(sum)
|
||
|
|
||
|
print("elapsed:", clock() - start)
|