MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / method2

Method method2

test/test/api/BusyLoops.java:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 4

mainMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected