Browse Source

Return stop watch instance on start

master
Steffen Märcker 8 years ago
committed by Joachim Klein
parent
commit
8aec43df69
  1. 7
      prism/src/common/StopWatch.java

7
prism/src/common/StopWatch.java

@ -84,17 +84,18 @@ public class StopWatch
}
/** Start the stop watch (without task description) */
public void start()
public StopWatch start()
{
start(null);
return start(null);
}
/** Start the stop watch, store task description (may be {@code null}) */
public void start(String taskDescription)
public StopWatch start(String taskDescription)
{
this.taskDescription = taskDescription;
running = true;
time = System.currentTimeMillis();
return this;
}
/**

Loading…
Cancel
Save