#timed #execution #profiler #conveniently #aleo #std #time

macro aleo-std-timed

A profiler to conveniently time function executions

3 releases

0.1.2 May 29, 2022
0.1.1 May 29, 2022
0.1.0 Nov 13, 2021

#14 in #conveniently

Download history 4723/week @ 2024-07-27 3369/week @ 2024-08-03 2175/week @ 2024-08-10 2539/week @ 2024-08-17 3162/week @ 2024-08-24 4462/week @ 2024-08-31 2822/week @ 2024-09-07 1778/week @ 2024-09-14 2064/week @ 2024-09-21 2121/week @ 2024-09-28 1288/week @ 2024-10-05 2261/week @ 2024-10-12 2241/week @ 2024-10-19 2411/week @ 2024-10-26 1499/week @ 2024-11-02 1974/week @ 2024-11-09

8,491 downloads per month
Used in 102 crates (via aleo-std)

GPL-3.0 license

15KB
113 lines

aleo-std-timed

Crates.io Authors License

This crate implements a profiler to conveniently time function executions.

use aleo_std::prelude::*;

#[timed]
fn foo(y: i32) -> i32 {
    let mut x = 1;
    let d = 1_000;
    x += d;
    x += y;
    x
}

#[timed]
fn main() {
    foo(23);
}

Dependencies

~1.5MB
~37K SLoC