Skip to content

Commit

Permalink
Update lastExecutionStartTime when any driver starts
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Apr 29, 2015
1 parent 3d62132 commit 7c44f84
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,11 @@ public Session getSession()

public void start()
{
if (!startNanos.compareAndSet(0, System.nanoTime())) {
// already started
return;
}
DateTime now = DateTime.now();
executionStartTime.compareAndSet(null, now);
startNanos.compareAndSet(0, System.nanoTime());

// always update last execution start time
lastExecutionStartTime.set(now);
}

Expand Down

0 comments on commit 7c44f84

Please sign in to comment.