// Run the network on the input for time `run_time`.
start = timeit.timeit()
spikes = network.run(inpts={}, time=run_time)
end = timeit.timeit()results[i] = end - start
print("Average: ",torch.mean(results)," std: ",torch.std(results))
After Change
for i in range(tests):
// Run the network on the input for time `run_time`.
start = time.time()
spikes = network.run(inpts={}, time=run_time)
end = time.time()results[i] = end - start
print(results[i])