public double getTime() { return (double) (timeSource.getRawTime() - base) * timeSource.getResolution(); }
public void setTime(double time) { base = timeSource.getRawTime() - (long) (time / timeSource.getResolution()); }
public void init() { base = timeSource.getRawTime(); }