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