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