| Crates.io | etime |
| lib.rs | etime |
| version | 0.1.8 |
| created_at | 2021-12-09 06:37:44.071974+00 |
| updated_at | 2022-02-21 08:14:41.346706+00 |
| description | measure elapsed time |
| homepage | |
| repository | https://github.com/rise0chen/etime.git |
| max_upload_size | |
| id | 495010 |
| size | 12,563 |
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);