Crates.io | aleo-std-timed |
lib.rs | aleo-std-timed |
version | 0.1.2 |
source | src |
created_at | 2021-11-13 08:37:57.846982 |
updated_at | 2022-05-29 23:59:45.008337 |
description | A profiler to conveniently time function executions |
homepage | |
repository | |
max_upload_size | |
id | 481321 |
size | 42,353 |
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);
}