# | Line 59 | Line 59 | public final class NoopSpinLockLoops { | |
---|---|---|
59 | barrier.await(); | |
60 | if (print) { | |
61 | long time = timer.getTime(); | |
62 | < | long tpi = time / ((long)iters * nthreads); |
62 | > | long tpi = time / ((long) iters * nthreads); |
63 | System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per lock"); | |
64 | < | double secs = (double)(time) / 1000000000.0; |
64 | > | double secs = (double) time / 1000000000.0; |
65 | System.out.println("\t " + secs + "s run time"); | |
66 | } | |
67 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |