Skip to content

Commit

Permalink
Updated to add an additional timer call to ignore print
Browse files Browse the repository at this point in the history
  • Loading branch information
sternj committed Apr 21, 2022
1 parent c72c8f5 commit a5f6a81
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/issues/test-issue379.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import time
import numpy as np


def main():
t0 = time.time()
# t0 = time.time()
x = np.array(range(10**7))
t1 = time.time()
print(t1 - t0)
# t1 = time.time()
# print(t1 - t0)
# t2 = time.time()
y = np.array(np.random.uniform(0, 100, size=(10**8)))
t2 = time.time()
print(t2 - t1)
# t3 = time.time()
# print(t3 - t2)


main()
main()

0 comments on commit a5f6a81

Please sign in to comment.