The system counter/timer is used by:
Maybe you should use:4.2.11. pico_time
API for accurate timestamps, sleeping, and time based callbacks.
4.2.11.1. Detailed Description
NOTE
The functions defined here provide a much more powerful and user friendly wrapping around the low level hardware
timer functionality. For these functions (and any other SDK functionality e.g. timeouts, that relies on them) to work
correctly, the hardware timer should not be modified. i.e. it is expected to be monotonically increasing once per
microsecond. Fortunately there is no need to modify the hardware timer as any functionality you can think of that
isn’t already covered here can easily be modelled by adding or subtracting a constant value from the unmodified
hardware timer.
4.2.11.2. Modules
timestamp Timestamp functions relating to points in time (including the current time).
sleep Sleep functions for delaying execution in a lower power state.
alarm Alarm functions for scheduling future execution.
repeating_timer Repeating Timer functions for simple scheduling of repeated execution.
4.1.28. hardware_timer
Low-level hardware timer API.
Statistics: Posted by gmx — Tue Nov 11, 2025 5:27 pm