Skip to content

Commit 658d9a9

Browse files
authored
Create time_counter.py
1 parent c518ae9 commit 658d9a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

time_counter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import time
2+
t0 = time.time()
3+
sum = 0.0
4+
5+
for i in range(0,40000000):
6+
sum += i
7+
print sum
8+
9+
print time.time() - t0, "seconds wall time"

0 commit comments

Comments
 (0)