150 |
|
if (print) { |
151 |
|
long tpi = time / (iters * nthreads); |
152 |
|
System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per update"); |
153 |
< |
// double secs = (double)(time) / 1000000000.0; |
153 |
> |
// double secs = (double) time / 1000000000.0; |
154 |
|
// System.out.print("\t " + secs + "s run time"); |
155 |
|
System.out.println(); |
156 |
|
} |
176 |
|
final int loop(int n) { |
177 |
|
int sum = 0; |
178 |
|
while (n-- > 0) { |
179 |
< |
synchronized(this) { |
179 |
> |
synchronized (this) { |
180 |
|
v = LoopHelpers.compute1(v); |
181 |
|
} |
182 |
|
sum += LoopHelpers.compute2(v); |