package org.usfirst.frc.team2503.r2016.control;

import java.util.Date;

public class Ticker implements Runnable {

	@Override
	public void run() {
		while(true) {
			long dt0 = new Date().getTime();
			
			this._tickable.tick();
			
			long dt1 = new Date().getTime();
			
			long d = dt1 - dt0;
			
			try {
				Thread.sleep(this._periodMilliseconds - d);
			} catch (InterruptedException e) {
				e.printStackTrace();
				break;
			}
		}
	}
	
	private Tickable _tickable;
	private long _periodMilliseconds;
	
	public Ticker(Tickable _tickable, long periodMilliseconds) {
		this._tickable = _tickable;
		this._periodMilliseconds = periodMilliseconds;
	}

}

@@ -109,16 +109,82 @@
 able %7B%0A%0A
+%09private Tickable _tickable;%0A%09private long _periodMilliseconds;%0A%09%0A
 %09@Overri
@@ -509,74 +509,8 @@
 %7D%0A%09%0A
-%09private Tickable _tickable;%0A%09private long _periodMilliseconds;%0A%09%0A
 %09pub

Move instance variable declarations to top of class