()
| 19 | } |
| 20 | |
| 21 | static long method2() { |
| 22 | long iterations = 0; |
| 23 | Instant end = Instant.now().plusMillis(100); |
| 24 | while (Instant.now().isBefore(end)) { |
| 25 | iterations++; |
| 26 | } |
| 27 | return iterations; |
| 28 | } |
| 29 | |
| 30 | static long method3() { |
| 31 | long iterations = 0; |