#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

#13 in #conveniently

Download history 3530/week @ 2024-07-03 3207/week @ 2024-07-10 3609/week @ 2024-07-17 3555/week @ 2024-07-24 5547/week @ 2024-07-31 1511/week @ 2024-08-07 2251/week @ 2024-08-14 3242/week @ 2024-08-21 3101/week @ 2024-08-28 4569/week @ 2024-09-04 1924/week @ 2024-09-11 2131/week @ 2024-09-18 2083/week @ 2024-09-25 1892/week @ 2024-10-02 1484/week @ 2024-10-09 2508/week @ 2024-10-16

8,387 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
~36K SLoC