[][src]Crate ruspiro_timer

Timer functions

This crate provides simple timing functions to pause the core for a specific amount of time.

Usage

use rusprio_timer as timer;
 
fn demo() {
    timer::sleep(1000); // pause for 1 milli second
    timer::sleepcycles(200); // pause for 200 CPU cycles
}
 

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