Macro time_stage

Source
macro_rules! time_stage {
    ($name:expr, $block:block) => { ... };
}
Expand description

Macro for timing a code block with automatic stage guard creation.

This is a convenience macro that creates a stage guard for a named block. The guard is automatically dropped at the end of the block.

§Example

use kryst::utils::profiling::time_stage;
 
time_stage!("MatVec", {
    // ... matrix-vector multiplication code ...
});