1 2 3 4 5
use std::time::Instant; pub fn log(str:&str){ let now = Instant::now(); println!("time{:?}, log: {}",now, str); }