Catalog PyPI
PACKAGE EXPLORERView in registry

adafruit-circuitpython-ticks

PyPI

Work with intervals and deadlines in milliseconds

adafruitblinkacircuitpythonclockdeadlineintervalmicropythontickstime
Versions collected1
Direct dependencies1From release 1.1.7
Last observed20 Oct, 18:57 UTC

README

Version 1.1.7 documentation
Introduction
============


.. image:: https://readthedocs.org/projects/adafruit-circuitpython-ticks/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/ticks/en/latest/
    :alt: Documentation Status


.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord


.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ticks/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_ticks/actions
    :alt: Build Status


.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

Work with intervals and deadlines in milliseconds


Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_
or individual libraries can be installed using
`circup <https://github.com/adafruit/circup>`_.



Installing from PyPI
=====================

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-ticks/>`_.
To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-ticks

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-ticks

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-ticks



Installing to a Connected CircuitPython Device with Circup
==========================================================

Make sure that you have ``circup`` installed in your Python environment.
Install it with the following command if necessary:

.. code-block:: shell

    pip3 install circup

With ``circup`` installed and your CircuitPython device connected use the
following command to install:

.. code-block:: shell

    circup install adafruit_ticks

Or the following command to update an existing version:

.. code-block:: shell

    circup update

Usage Example
=============

.. code-block:: python

    from adafruit_ticks import ticks_ms, ticks_add, ticks_less

    # Wait for 100ms to pass
    deadline = ticks_add(ticks_ms(), 100)
    while ticks_less(ticks_ms(), deadline):
        pass

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/ticks/en/latest/>`_.

For information on building library documentation, please check out
`this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_ticks/blob/HEAD/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

Downloads & popularity

247downloads
1-day window · source-reported counts20 Oct 2026
763381.50
2026-07-23: 607 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-23–2026-07-232026-07-24: 97 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-24–2026-07-242026-07-25: 227 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-25–2026-07-252026-07-26: 509 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-26–2026-07-262026-07-27: 168 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-27–2026-07-272026-07-28: 249 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-28–2026-07-282026-07-29: 640 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-29–2026-07-292026-07-30: 187 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-30–2026-07-302026-07-31: 113 · observed 2026-10-21T16:33:09.2881275Z · period 2026-07-31–2026-07-312026-08-01: 738 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-01–2026-08-012026-08-02: 76 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-02–2026-08-022026-08-03: 158 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-03–2026-08-032026-08-04: 621 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-04–2026-08-042026-08-05: 143 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-05–2026-08-052026-08-06: 156 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-06–2026-08-062026-08-07: 558 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-07–2026-08-072026-08-08: 51 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-08–2026-08-082026-08-09: 153 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-09–2026-08-092026-08-10: 604 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-10–2026-08-102026-08-11: 177 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-11–2026-08-112026-08-12: 187 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-12–2026-08-122026-08-13: 678 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-13–2026-08-132026-08-14: 298 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-14–2026-08-142026-08-15: 215 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-15–2026-08-152026-08-16: 709 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-16–2026-08-162026-08-17: 115 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-17–2026-08-172026-08-18: 73 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-18–2026-08-182026-08-19: 588 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-19–2026-08-192026-08-20: 116 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-20–2026-08-202026-08-21: 95 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-21–2026-08-212026-08-22: 763 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-22–2026-08-222026-08-23: 138 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-23–2026-08-232026-08-24: 142 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-24–2026-08-242026-08-25: 339 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-25–2026-08-252026-08-26: 96 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-26–2026-08-262026-08-27: 45 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-27–2026-08-272026-08-28: 327 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-28–2026-08-282026-08-29: 15 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-29–2026-08-292026-08-30: 59 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-30–2026-08-302026-08-31: 338 · observed 2026-10-21T16:33:09.2881275Z · period 2026-08-31–2026-08-312026-09-01: 115 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-01–2026-09-012026-09-02: 264 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-02–2026-09-022026-09-03: 315 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-03–2026-09-032026-09-04: 77 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-04–2026-09-042026-09-05: 32 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-05–2026-09-052026-09-06: 330 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-06–2026-09-062026-09-07: 106 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-07–2026-09-072026-09-08: 96 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-08–2026-09-082026-09-09: 325 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-09–2026-09-092026-09-10: 54 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-10–2026-09-102026-09-11: 36 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-11–2026-09-112026-09-12: 335 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-12–2026-09-122026-09-13: 69 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-13–2026-09-132026-09-14: 71 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-14–2026-09-142026-09-15: 430 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-15–2026-09-152026-09-16: 63 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-16–2026-09-162026-09-17: 81 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-17–2026-09-172026-09-18: 385 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-18–2026-09-182026-09-19: 53 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-19–2026-09-192026-09-20: 188 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-20–2026-09-202026-09-21: 130 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-21–2026-09-212026-09-22: 58 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-22–2026-09-222026-09-23: 78 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-23–2026-09-232026-09-24: 55 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-24–2026-09-242026-09-25: 146 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-25–2026-09-252026-09-26: 167 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-26–2026-09-262026-09-27: 253 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-27–2026-09-272026-09-28: 248 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-28–2026-09-282026-09-29: 103 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-29–2026-09-292026-09-30: 229 · observed 2026-10-21T16:33:09.2881275Z · period 2026-09-30–2026-09-302026-10-01: 275 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-01–2026-10-012026-10-02: 177 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-02–2026-10-022026-10-03: 300 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-03–2026-10-032026-10-04: 202 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-04–2026-10-042026-10-05: 144 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-05–2026-10-052026-10-06: 49 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-06–2026-10-062026-10-07: 163 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-07–2026-10-072026-10-08: 182 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-08–2026-10-082026-10-09: 52 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-09–2026-10-092026-10-10: 71 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-10–2026-10-102026-10-11: 80 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-11–2026-10-112026-10-12: 81 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-12–2026-10-122026-10-13: 83 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-13–2026-10-132026-10-14: 100 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-14–2026-10-142026-10-15: 50 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-15–2026-10-152026-10-16: 100 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-16–2026-10-162026-10-17: 60 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-17–2026-10-172026-10-18: 648 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-18–2026-10-182026-10-19: 94 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-19–2026-10-192026-10-20: 247 · observed 2026-10-21T16:33:09.2881275Z · period 2026-10-20–2026-10-20
23 Jul20 Oct

pypistats · 90 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-20 – 2026-10-202472026-10-21T16:33:09.2881275Z
2026-10-19 – 2026-10-19942026-10-21T16:33:09.2881275Z
2026-10-18 – 2026-10-186482026-10-21T16:33:09.2881275Z
2026-10-17 – 2026-10-17602026-10-21T16:33:09.2881275Z
2026-10-16 – 2026-10-161002026-10-21T16:33:09.2881275Z
2026-10-15 – 2026-10-15502026-10-21T16:33:09.2881275Z
2026-10-14 – 2026-10-141002026-10-21T16:33:09.2881275Z
2026-10-13 – 2026-10-13832026-10-21T16:33:09.2881275Z
2026-10-12 – 2026-10-12812026-10-21T16:33:09.2881275Z
2026-10-11 – 2026-10-11802026-10-21T16:33:09.2881275Z
2026-10-10 – 2026-10-10712026-10-21T16:33:09.2881275Z
2026-10-09 – 2026-10-09522026-10-21T16:33:09.2881275Z
2026-10-08 – 2026-10-081822026-10-21T16:33:09.2881275Z
2026-10-07 – 2026-10-071632026-10-21T16:33:09.2881275Z
2026-10-06 – 2026-10-06492026-10-21T16:33:09.2881275Z
2026-10-05 – 2026-10-051442026-10-21T16:33:09.2881275Z
2026-10-04 – 2026-10-042022026-10-21T16:33:09.2881275Z
2026-10-03 – 2026-10-033002026-10-21T16:33:09.2881275Z
2026-10-02 – 2026-10-021772026-10-21T16:33:09.2881275Z
2026-10-01 – 2026-10-012752026-10-21T16:33:09.2881275Z
2026-09-30 – 2026-09-302292026-10-21T16:33:09.2881275Z
2026-09-29 – 2026-09-291032026-10-21T16:33:09.2881275Z
2026-09-28 – 2026-09-282482026-10-21T16:33:09.2881275Z
2026-09-27 – 2026-09-272532026-10-21T16:33:09.2881275Z
2026-09-26 – 2026-09-261672026-10-21T16:33:09.2881275Z
2026-09-25 – 2026-09-251462026-10-21T16:33:09.2881275Z
2026-09-24 – 2026-09-24552026-10-21T16:33:09.2881275Z
2026-09-23 – 2026-09-23782026-10-21T16:33:09.2881275Z
2026-09-22 – 2026-09-22582026-10-21T16:33:09.2881275Z
2026-09-21 – 2026-09-211302026-10-21T16:33:09.2881275Z
2026-09-20 – 2026-09-201882026-10-21T16:33:09.2881275Z
2026-09-19 – 2026-09-19532026-10-21T16:33:09.2881275Z
2026-09-18 – 2026-09-183852026-10-21T16:33:09.2881275Z
2026-09-17 – 2026-09-17812026-10-21T16:33:09.2881275Z
2026-09-16 – 2026-09-16632026-10-21T16:33:09.2881275Z
2026-09-15 – 2026-09-154302026-10-21T16:33:09.2881275Z
2026-09-14 – 2026-09-14712026-10-21T16:33:09.2881275Z
2026-09-13 – 2026-09-13692026-10-21T16:33:09.2881275Z
2026-09-12 – 2026-09-123352026-10-21T16:33:09.2881275Z
2026-09-11 – 2026-09-11362026-10-21T16:33:09.2881275Z
2026-09-10 – 2026-09-10542026-10-21T16:33:09.2881275Z
2026-09-09 – 2026-09-093252026-10-21T16:33:09.2881275Z
2026-09-08 – 2026-09-08962026-10-21T16:33:09.2881275Z
2026-09-07 – 2026-09-071062026-10-21T16:33:09.2881275Z
2026-09-06 – 2026-09-063302026-10-21T16:33:09.2881275Z
2026-09-05 – 2026-09-05322026-10-21T16:33:09.2881275Z
2026-09-04 – 2026-09-04772026-10-21T16:33:09.2881275Z
2026-09-03 – 2026-09-033152026-10-21T16:33:09.2881275Z
2026-09-02 – 2026-09-022642026-10-21T16:33:09.2881275Z
2026-09-01 – 2026-09-011152026-10-21T16:33:09.2881275Z
2026-08-31 – 2026-08-313382026-10-21T16:33:09.2881275Z
2026-08-30 – 2026-08-30592026-10-21T16:33:09.2881275Z
2026-08-29 – 2026-08-29152026-10-21T16:33:09.2881275Z
2026-08-28 – 2026-08-283272026-10-21T16:33:09.2881275Z
2026-08-27 – 2026-08-27452026-10-21T16:33:09.2881275Z
2026-08-26 – 2026-08-26962026-10-21T16:33:09.2881275Z
2026-08-25 – 2026-08-253392026-10-21T16:33:09.2881275Z
2026-08-24 – 2026-08-241422026-10-21T16:33:09.2881275Z
2026-08-23 – 2026-08-231382026-10-21T16:33:09.2881275Z
2026-08-22 – 2026-08-227632026-10-21T16:33:09.2881275Z
2026-08-21 – 2026-08-21952026-10-21T16:33:09.2881275Z
2026-08-20 – 2026-08-201162026-10-21T16:33:09.2881275Z
2026-08-19 – 2026-08-195882026-10-21T16:33:09.2881275Z
2026-08-18 – 2026-08-18732026-10-21T16:33:09.2881275Z
2026-08-17 – 2026-08-171152026-10-21T16:33:09.2881275Z
2026-08-16 – 2026-08-167092026-10-21T16:33:09.2881275Z
2026-08-15 – 2026-08-152152026-10-21T16:33:09.2881275Z
2026-08-14 – 2026-08-142982026-10-21T16:33:09.2881275Z
2026-08-13 – 2026-08-136782026-10-21T16:33:09.2881275Z
2026-08-12 – 2026-08-121872026-10-21T16:33:09.2881275Z
2026-08-11 – 2026-08-111772026-10-21T16:33:09.2881275Z
2026-08-10 – 2026-08-106042026-10-21T16:33:09.2881275Z
2026-08-09 – 2026-08-091532026-10-21T16:33:09.2881275Z
2026-08-08 – 2026-08-08512026-10-21T16:33:09.2881275Z
2026-08-07 – 2026-08-075582026-10-21T16:33:09.2881275Z
2026-08-06 – 2026-08-061562026-10-21T16:33:09.2881275Z
2026-08-05 – 2026-08-051432026-10-21T16:33:09.2881275Z
2026-08-04 – 2026-08-046212026-10-21T16:33:09.2881275Z
2026-08-03 – 2026-08-031582026-10-21T16:33:09.2881275Z
2026-08-02 – 2026-08-02762026-10-21T16:33:09.2881275Z
2026-08-01 – 2026-08-017382026-10-21T16:33:09.2881275Z
2026-07-31 – 2026-07-311132026-10-21T16:33:09.2881275Z
2026-07-30 – 2026-07-301872026-10-21T16:33:09.2881275Z
2026-07-29 – 2026-07-296402026-10-21T16:33:09.2881275Z
2026-07-28 – 2026-07-282492026-10-21T16:33:09.2881275Z
2026-07-27 – 2026-07-271682026-10-21T16:33:09.2881275Z
2026-07-26 – 2026-07-265092026-10-21T16:33:09.2881275Z
2026-07-25 – 2026-07-252272026-10-21T16:33:09.2881275Z
2026-07-24 – 2026-07-24972026-10-21T16:33:09.2881275Z
2026-07-23 – 2026-07-236072026-10-21T16:33:09.2881275Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.723 Apr 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
adafruit/adafruit_circuitpython_ticks

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2b0d7fb67bca7e1f583b6545e997d505a5013a7ad429a60a4e0b45cc3ac36353