Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.jlab.utils.benchmark;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

Expand All @@ -12,8 +12,8 @@
public class BenchmarkTimer {

public static class BenchmarkMultiTimer extends BenchmarkTimer {
HashMap<Integer,Long> timeAtResume = new HashMap<>();
HashMap<Integer,Boolean> isPaused = new HashMap<>();
ConcurrentHashMap<Integer,Long> timeAtResume = new ConcurrentHashMap<>();
ConcurrentHashMap<Integer,Boolean> isPaused = new ConcurrentHashMap<>();
public BenchmarkMultiTimer(String name) { super(name); }
public void resume(int thread) {
if (!isPaused.containsKey(thread) || isPaused.get(thread)) {
Expand Down
Loading