Skip to content

Commit e2542e7

Browse files
committed
1 parent 34a061b commit e2542e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/24-Concurrent-Programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ import onjava.Timer;
346346
public class Summing {
347347
static void timeTest(String id, long checkValue, LongSupplier operation){
348348
System.out.print(id + ": ");
349-
Timer timer = newTimer();
349+
Timer timer = new Timer();
350350
long result = operation.getAsLong();
351351
if(result == checkValue)
352352
System.out.println(timer.duration() + "ms");

0 commit comments

Comments
 (0)