etime

Crates.ioetime
lib.rsetime
version0.1.8
sourcesrc
created_at2021-12-09 06:37:44.071974
updated_at2022-02-21 08:14:41.346706
descriptionmeasure elapsed time
homepage
repositoryhttps://github.com/rise0chen/etime.git
max_upload_size
id495010
size12,563
Rise Chen (rise0chen)

documentation

README

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

Commit count: 8

cargo fmt