Skip to content

A handy library for measuring the execution time of function in tests environment

License

Notifications You must be signed in to change notification settings

kookyleo/calculagraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculagraph

A handy library for measuring the execution time of function.

Package

Usage

[dependencies]
calculagraph = "0.1"
use std::{thread, time};
use calculagraph::timer_println;

#[timer_println(ms)]
fn main() {
    thread::sleep(time::Duration::from_millis(10));
    println!("job done");
}

The above example will print fn:main cost 10ms at the end, You can also use the second argument to define the format string you need.

More

https://docs.rs/calculagraph

About

A handy library for measuring the execution time of function in tests environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages