```rust fn run_time() { let now = std::time::Instant::now(); // 执行函数 run(); println!("执行时间: {}", now.elapsed().as_millis()); } fn run() {} ```