BrunoRosendo / master-thesis

Source code for my master's thesis, in the topic "Quantum algorithms for optimizing urban transportation"
MIT License
5 stars 0 forks source link

Remove code duplication in time measurement #84

Closed BrunoRosendo closed 3 months ago

BrunoRosendo commented 4 months ago

There are currently a few cases where this kind of time measurement is done:

start_time = time.perf_counter_ns()
result = sampler.sample(bqm, **kwargs)
run_time = round((time.perf_counter_ns() - start_time) // 1000)

I should find a way to refactor this and avoid the code duplication