Rust gets the current system timestamp · use std::time::{SystemTime, UNIX_EPOCH}; · extern crate time; · fn timestamp2() -> i64 { · let timespec = time::get_time();.
確定! 回上一頁