Discussion:
[pyqtgraph] Timer Precision
d***@gmail.com
2018-11-29 16:25:44 UTC
Permalink
Hi All,
I am new to pyqtgraph and was curious about the precision of the qtimer.
How accurate is it and Can it do microseconds?
Regards,
Dev
--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/983f3f24-549d-428b-9f17-aed831e20b2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Patrick
2018-11-30 03:01:59 UTC
Permalink
Hi,

Clocks are system (hardware, OS) dependent. Documentation
(http://doc.qt.io/qt-5/qtimer.html) says 1 ms can be expected. You may want
to keep track of events using a separate clock (rather than relying on a
QTimer timeout event). The python time module should help there
(https://docs.python.org/3/library/time.html), where you can query the
accuracy of the system clock(s), and access the perf_counter() to get the
most accurate system clock available.

Patrick
Post by d***@gmail.com
Hi All,
I am new to pyqtgraph and was curious about the precision of the qtimer.
How accurate is it and Can it do microseconds?
Regards,
Dev
--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9f313f09-a55f-4ef5-9744-f8373a2ee607%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...