Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道除了System.currentTimeMillis() 和System.nanoTime()之外,还有什么方法可以执行更特殊的时间操作?它可以依赖JVM。
还有另一个类在多线程环境中执行定时和延迟操作。那是。
java.util.concurrent.TimeUnit