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.
我正在用 Java 编写 Nintendo Gameboy 模拟器,但在模拟处理器时遇到了问题。原始时钟频率约为。4.19MHz。这个怎么做?我考虑过放入Thread.sleep(long, int),但它不起作用,因为使用它你可以模拟高达 1MHz,但不能模拟 4MHz。有没有类似但更精确的东西?还有其他方法可以降低执行速度吗?
Thread.sleep(long, int)