aleo-std-timed

Crates.ioaleo-std-timed
lib.rsaleo-std-timed
version0.1.2
sourcesrc
created_at2021-11-13 08:37:57.846982
updated_at2022-05-29 23:59:45.008337
descriptionA profiler to conveniently time function executions
homepage
repository
max_upload_size
id481321
size42,353
Howard Wu (howardwu)

documentation

README

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);
}
Commit count: 0

cargo fmt