1//! `get_time!` 2 3/// ブロック内のコードの実行時間を返す。 4#[macro_export] 5macro_rules! get_time { 6 ($b:block) => {{ 7 use std::time::Instant; 8 let start = Instant::now(); 9 $b; 10 start.elapsed() 11 }}; 12}