Skip to content

best practice of multiple energy measurements in a single program #74

Closed Answered by jaywonchung
Sunt-ing asked this question in Q&A
Discussion options

You must be logged in to vote

You only need one monitor for that. Multiple measurement windows can even overlap w.r.t. a single ZeusMonitor. That is, even when measurement windows temporally overlap, you will get Measurement objects as though those windows were taken from different ZeusMonitor instances.

mes = []
for _ in range(10):
    monitor.begin_window("loop")
    fun()
    mes.append(monitor.end_window("loop"))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sunt-ing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants