public double update() {
		if(firstRun) {
			firstRun = false;
			lastTime = System.nanoTime();
			return 0;
		} else {
			long elapsedTime = System.nanoTime() - lastTime;
			lastTime = System.nanoTime();
			this.elapsedTime = elapsedTime / (double) 1000000;
			return this.elapsedTime;
		}
	}