public long mark(String label, long time) { TimeEntry entry = new TimeEntry(); entry.label = label; entry.time = time; entries.add(entry); return entry.time; }
public long mark(String label) { TimeEntry entry = new TimeEntry(); entry.label = label; entry.time = System.currentTimeMillis(); entries.add(entry); return entry.time; }