Added timing to CDR3/CDR1 matching

This commit is contained in:
2021-11-16 16:37:29 -06:00
parent 48510a5b60
commit 255a3ba66c
3 changed files with 22 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import java.time.Duration;
import java.util.List;
import java.util.Map;
@@ -6,12 +7,15 @@ public class MatchingResult {
private List<String> headers;
private List<List<String>> allResults;
private Map<Integer, Integer> matchMap;
private Duration time;
public MatchingResult(List<String> comments, List<String> headers, List<List<String>> allResults, Map<Integer, Integer>matchMap){
public MatchingResult(List<String> comments, List<String> headers, List<List<String>> allResults, Map<Integer, Integer>matchMap, Duration time){
this.comments = comments;
this.headers = headers;
this.allResults = allResults;
this.matchMap = matchMap;
this.time = time;
}
public List<String> getComments() {
@@ -29,4 +33,8 @@ public class MatchingResult {
public Map<Integer, Integer> getMatchMap() {
return matchMap;
}
public Duration getTime() {
return time;
}
}