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