calculagraph 0.1.0

A handy library for measuring the execution time of function
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented5 out of 5 items with examples
  • Size
  • Source code size: 23.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 317.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kookyleo/calculagraph
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kookyleo

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