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