9 releases

0.1.8 Feb 21, 2022
0.1.7 Jan 19, 2022
0.1.3 Dec 15, 2021

44 downloads per month

Custom license

6KB

Etime

Usage

Base

use core::time::Duration;
use etime::Etime;
use std::thread;

let etime = Etime::new();
etime.tic();
thread::sleep(Duration::from_secs(1));
let elapsed = etime.toc();
println!("{:?}", elapsed);

Set Clock Source

Dependencies

~11KB