Crates.io | aleo-std-timed |
lib.rs | aleo-std-timed |
version | 1.0.1 |
source | src |
created_at | 2021-11-13 08:37:57.846982+00 |
updated_at | 2025-03-11 17:13:38.035288+00 |
description | A profiler to conveniently time function executions |
homepage | |
repository | |
max_upload_size | |
id | 481321 |
size | 42,506 |
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);
}