Skip to content

Commit a1e5539

Browse files
authored
fix a bug in how we printed time (#5)
1 parent 756e9f0 commit a1e5539

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

0-base/now.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import time
22

3-
print(int(time.time() * float(10^9)))
3+
print("%d" % (float(time.time()) * 1000 * 1000 * 1000))

1-measured/now.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import time
22

3-
print(int(time.time() * float(10^9)))
3+
print("%d" % (float(time.time()) * 1000 * 1000 * 1000))

2-optimized-dockerfile/now.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import time
22

3-
print(int(time.time() * float(10^9)))
3+
print("%d" % (float(time.time()) * 1000 * 1000 * 1000))

3-recommended/now.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import time
22

3-
print(int(time.time() * float(10^9)))
3+
print("%d" % (float(time.time()) * 1000 * 1000 * 1000))

0 commit comments

Comments
 (0)