Crate whosly

source ·
Expand description

§DurationX

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

§Examples

A simple:

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

let now = DurationX::new();

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

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

Modules§

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