timetrap 0.1.0

Macros to wrap your code and measure time
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 7.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 102.64 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • vladneyo/timetrap
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vladneyo

timetrap

Rust

Description

timetrap library is intended to wrap your code and measure the time of its execution.

Install it as:

cargo install timetrap

Example of use:

use timetrap::trap;
trap!({
     let a = 0;
     ...
});