Skip to main content

trace_success

Macro trace_success 

Source
macro_rules! trace_success {
    ($operation:expr, $start:expr) => { ... };
    ($operation:expr, $start:expr, $($field:tt)*) => { ... };
}
Expand description

Log a successful operation with timing.

§Example

use mabi_core::trace_success;
use std::time::Instant;

let start = Instant::now();
// ... operation
trace_success!("read", start);