ruspiro-timer 0.5.0

This crates provides simple timing functions to pause the current processing for a specific amount of time. The core pausing is called on will block. failed to build ruspiro-timer-0.5.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure builds.
If you believe this is' fault, open an issue.
Visit the last successful build: ruspiro-timer-0.3.0

Timer RusPiRo crate

This crate provides simple functions to pause execution on the current core for a given amount of time. It uses the free-running counter of the Raspberry Pi to provide micro second accurate pause timings.

CI Latest Version Documentation License


Feature Description
ruspiro_pi3 active to use the proper timer MMIO base memory address for Raspberry Pi 3 when accessing the system timer peripheral


To use the crate just add the following dependency to your Cargo.toml file:

ruspiro-timer = "0.5.0"

Once done the access to the timer functions is available in your rust files like so:

use core::time::Duration
use rusprio_timer:*;

fn foo() {
    sleep(Duration::from_millis(1)); // pause for 1 millisecond
    sleepcycles(200); // pause for 200 CPU cycles

Scheduling the execution of a function/closure is as simple as this:

use core::time::Duration;
use ruspiro_timer::*;

fn foo() {
    // print after 100 milliseconds
    schedule(Duration:from_millis(100), || println!("delayed execution"));


Licensed under Apache License, Version 2.0, (LICENSE-APACHE or or MIT (LICENSE-MIT or at your choice.