1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Sonic // // Fast, lightweight and schema-less search backend // Copyright: 2026, Rémi Bardon <remi@remibardon.name> // License: Mozilla Public License v2.0 (MPL v2.0) pub(crate) mod logging; #[allow(unused_macros)] macro_rules! timed { ($code:block) => {{ let start = std::time::Instant::now(); let res = $code; eprintln!("Took {:.3?}", start.elapsed()); res }}; } pub(crate) use timed;