1 package com.atlassian.performance;
2
3 import java.util.ArrayList;
4 import java.util.Collections;
5 import java.util.List;
6
7 public class TimeRecorder {
8
9 private String testName;
10 private List<EventTime> events = new ArrayList<EventTime>();
11
12
13 public TimeRecorder(String testName)
14 {
15 this.testName = testName;
16 }
17
18 public void record(EventTime et)
19 {
20 events.add(et);
21 }
22
23 public List<EventTime> getEventTimes()
24 {
25 return Collections.unmodifiableList(events);
26 }
27
28 public String getTestName()
29 {
30 return testName;
31 }
32 }