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

import java.util.Date;

public class Ticker implements Runnable {

	private Tickable _tickable;
	private long _periodMilliseconds;
	
	@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;
			}
		}
	}
	
	public Ticker(Tickable _tickable, long periodMilliseconds) {
		this._tickable = _tickable;
		this._periodMilliseconds = periodMilliseconds;
	}

}

@@ -173,16 +173,45 @@
 econds;%0A
+%09private long _periodLength;%0A
 %09%0A%09@Over
@@ -365,22 +365,34 @@
 %0A%09%09%09%0A%09%09%09
-long d
+this._periodLength
  = dt1 -
@@ -454,17 +454,34 @@
 conds - 
-d
+this._periodLength
 );%0A%09%09%09%7D 
@@ -560,16 +560,90 @@
 %7D%0A%09%09%7D%0A%09%7D
+%0A%0A%09public long getPreviousPeriodLength() %7B%0A%09%09return this._periodLength;%0A%09%7D
 %0A%09%0A%09publ

Store previous period length in variable and add getter