rust-stopwatch —秒表库-Rust开发

时间:2021-05-27 19:28:50
【文件属性】:
文件名称:rust-stopwatch —秒表库-Rust开发
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-27 19:28:50
Rust Profiling rust-stopwatch这是一个用于计时Rust中时间的简单模块。 用法若要使用,请在[dependencies]下的Cargo.toml中添加以下行:stopwatch rust-stopwatch这是一个用于计时Rust中时间的简单模块。 用法若要使用,请在[dependencies]下将以下行添加到Cargo.toml:stopwatch =“ 0.0.7”或使用stopwatch = {git =“ https://github.com/ellisonch/rust-stopwatch.git”}示例外部板条箱秒表; 使用秒表:: {秒表}; // ... let sw = Stopwatch :: start_new(); //做一些需要一些时间的操作println!(“事情花了{} ms”,sw.elapsed_ms()); 方法fn new()->秒表fn start_new()-> S
【文件预览】:
rust-stopwatch-master
----Cargo.toml(314B)
----LICENSE.txt(1KB)
----src()
--------lib.rs(3KB)
----.travis.yml(14B)
----README.md(860B)
----tests()
--------lib.rs(3KB)
----.gitignore(25B)

网友评论