Create some low-level Arduino-like millis() & delay() (for milliseconds) and micros() and delayMicroseconds() (for microseconds) timing functions for Python.
Compatible with Python in both Windows and Linux. Has ultra-great resolution timestamps (sub-microsecond), even in older versions of Python 3 which don't natively support (in the time module, for instance) high resolutions like this.
Gabriel Staples
www.ElectricRCAircraftGuy.com
-click "Contact me" at the top of my website to find my email address
- For anyone looking for a precision timing library on Linux in C or C++, see my library here. It is one of my best works yet, as of June 2022:
- My 3 sets of timestamp functions (cross-linked to each other):
- For C timestamps, see my answer here: Get a timestamp in C in microseconds?
- For C++ high-resolution timestamps, see my answer here: Here is how to get simple C-like millisecond, microsecond, and nanosecond timestamps in C++
- For Python high-resolution timestamps, see my answer here: How can I get millisecond and microsecond-resolution timestamps in Python?
(newest on top)
- 20160907 - v0.2.1 created - updated delay functions to use modulus operator to guarantee proper C uint32_t-like underflow subtraction behavior when the timer rolls over
- 20160813 - v0.2.0 created - added Linux capability
- 20160711 - v0.1.0 created - functions for Windows only (via the QPC timer)