package moonlander.library;


/*
 * Controller for running Rocket integration
 * without music track. Just tracks time and
 * advances row as fast as desired.
 */
class TimeController extends Controller {
    int rps;
    long lastMeterPoint;

    TimeController(int rowsPerSecond) {
        rps = rowsPerSecond;
        lastMeterPoint = 0;
    }

    public void update() {
        if (!isPlaying()) {
            lastMeterPoint = 0;
            return;
        }

        if (lastMeterPoint == 0)
            lastMeterPoint = System.nanoTime();

        // Update current time
        long meter = System.nanoTime();
        long timespan = meter - lastMeterPoint;
        lastMeterPoint = meter;
        setCurrentRow(currentRow + (timespan/1e9)*rps, false);
    }
}

package moonlander.library;


/*
 * Controller for running Rocket integration
 * without music track. Just tracks time and
 * advances row as fast as desired.
 */
public class TimeController extends Controller {
    int rps;
    long lastMeterPoint;

    public TimeController(int rowsPerSecond) {
        rps = rowsPerSecond;
        lastMeterPoint = 0;
    }

    public void update() {
        if (!isPlaying()) {
            lastMeterPoint = 0;
            return;
        }

        if (lastMeterPoint == 0)
            lastMeterPoint = System.nanoTime();

        // Update current time
        long meter = System.nanoTime();
        long timespan = meter - lastMeterPoint;
        lastMeterPoint = meter;
        setCurrentRow(currentRow + (timespan/1e9)*rps, false);
    }
}

Make TimeController public