Skip to content

Commit

Permalink
Merge pull request pymeasure#1109 from BenediktBurger/Fix-temptronic-…
Browse files Browse the repository at this point in the history
…timing-test

Fix temptronic test to use ns perf counter
  • Loading branch information
CasperSchippers authored May 14, 2024
2 parents 9aa0494 + 2342517 commit 92175a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/instruments/temptronic/test_temptronic_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
# THE SOFTWARE.
#

from time import perf_counter
from time import perf_counter_ns

from pymeasure.test import expected_protocol
from pymeasure.instruments.temptronic.temptronic_base import ATSBase


def test_check_query_delay():
with expected_protocol(ATSBase, [("TTIM?", "7")]) as inst:
start = perf_counter()
start = perf_counter_ns()
assert inst.maximum_test_time == 7
delay = perf_counter() - start
assert delay > 0.05
delay = perf_counter_ns() - start
assert delay > 0.05 * 1e9

0 comments on commit 92175a1

Please sign in to comment.