📜  rust lang sleep - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.549000             🧑  作者: Mango

代码示例1
use std::time::Duration;
use std::thread::sleep;

fn main() {
    sleep(Duration::from_millis(2));
}