You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
566 B

8 years ago
from subprocess import check_output
import subprocess
import random
import matplotlib.pyplot as plt
import time
random.seed()
loc = "../build/Lab3"
f = open('out','w')
f.write("Timer values")
for function in range(3, 5):
print("Method: " + str(function))
for q in range(0, 15):
print("Function: " + str(q))
f.write(str(q) + "\n")
start = time.time()
subprocess.call([
loc,
str(q),
str(20),
str(random.randint(0, 2147483646)),
str(function)
])
end = time.time()
f.write(str(end-start) + "\n")
f.close()