标签: java multithreading sleep
在Java中是否可以检测计算机何时进入睡眠模式?我已经尝试使用Thread.sleep(1000)来计算秒数,但似乎它将在睡眠模式下继续计数。
Thread.sleep(1000)