usestd::time::Instant;/// Starts the timer and returns the current time.
pubfnstart_timer()-> Instant{Instant::now()}/// Stops the timer and prints the elapsed time in nanoseconds.
pubfnend_timer(start: Instant){let duration = start.elapsed();println!("Execution time: {} nanoseconds", duration.as_nanos());}