()
| 36 | private static final AtomicLong SIMULATED_CURR_TIME_NANOS = new AtomicLong(0); |
| 37 | |
| 38 | public static boolean isSimulating() { |
| 39 | return SIMULATING.get(); |
| 40 | } |
| 41 | |
| 42 | public static void sleepUntil(long targetTimeMs) throws InterruptedException { |
| 43 | if (SIMULATING.get()) { |