📅  最后修改于: 2022-03-11 14:52:42.794000             🧑  作者: Mango
import java.util.concurrent.TimeUnit;
...
try {
TimeUnit.SECONDS.sleep(1);
} catch (Exception e) {}
// .MILLISECONDS.sleep, .MINUTES.sleep, etc. are also available