[−][src]Crate ruspiro_timer
Timer functions
This crate provides simple timing functions to pause the actual core for a specific amount of time.
Usage
use ruspiro_timer as timer; fn foo() { timer::sleep(1000); // pause for 1 milli second timer::sleepcycles(200); // pause for 200 CPU cycles }
Features
ruspiro_pi3
is active by default and ensures the proper timer MMIO base memory address is used for Raspberry Pi 3
Functions
sleep | Pause the current execution for the given amount of micro seconds |
sleepcycles | Pause the current execution for the given amount of CPU cycles |
Type Definitions
Useconds |