Crate whosly

source ·
Expand description


DurationX is a library of common toolsets, including but not limited to functions such as timer-consuming analysis


A simple:

use std::{thread, time};
use whosly::timer::duration::DurationX;

let now = DurationX::new();

let ten_millis = time::Duration::from_millis(100);

let duration = now.release();
println!("耗时:{}", duration);


  • A runtime for writing reliable network applications without compromising speed.