Example #1
0
 @Override
 public void run() {
   final long timePassed = (System.currentTimeMillis() - creationTime);
   setTime(initialTime + timePassed);
 }
Example #2
0
 public TimeUpdateTask() {
   creationTime = System.currentTimeMillis();
   initialTime = time;
 }