3 releases
0.1.2 | May 29, 2022 |
---|---|
0.1.1 | May 29, 2022 |
0.1.0 | Nov 13, 2021 |
#14 in #conveniently
8,491 downloads per month
Used in 102 crates
(via aleo-std)
15KB
113 lines
aleo-std-timed
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