/** * {@inheritDoc} * @see org.openimaj.time.TimeKeeper#getTime() */ @Override public MeasuresBeatsTicksTimecode getTime() { if( this.isRunning ) { // Update the current time. this.currentTime = (System.currentTimeMillis() - this.lastStarted - this.timeOffset); this.timecode.setTimecodeInMilliseconds( this.currentTime ); } return this.timecode; }
/** * {@inheritDoc} * @see org.openimaj.time.TimeKeeper#getTime() */ @Override public MeasuresBeatsTicksTimecode getTime() { if( this.isRunning ) { // Update the current time. this.currentTime = (System.currentTimeMillis() - this.lastStarted - this.timeOffset); this.timecode.setTimecodeInMilliseconds( this.currentTime ); } return this.timecode; }