public static void printTime() {

		// Store the minutes, seconds and milliseconds of each lap
		int[] minutes = new int[lapTimes.length];
		int[] seconds = new int[lapTimes.length];
		int[] milliseconds = new int[lapTimes.length];

		// For each lap, calculate the minutes, seconds and milliseconds
		for (int lap = 0; lap < lapTimes.length && lap < currentLap; lap++) {
			minutes[lap] = (int) Math.floor(lapTimes[lap] / 60);
			seconds[lap] = (int) Math.floor(lapTimes[lap] % 60);
			milliseconds[lap] = Math.round((lapTimes[lap] % 1f) * 100);
		}

		// Based on what lap the player is currently in, print the current lap
		// time and money, and the lap times and money for the last 3 laps
		// (empty if the player didn't drive that lap yet)
		if (currentLap > 0 && currentLap < 4) {
			print(20, viewportH - 50, String.format(
					"Current Lap: %d:%02d:%02d  Money: $%d",
					minutes[currentLap - 1], seconds[currentLap - 1],
					milliseconds[currentLap - 1], lapMoney[currentLap - 1]),
					28, "Font/timeFont.png");
		} else {
			print(20, viewportH - 50, "Current Lap: -:--:--  Money: $0", 28,
					"Font/timeFont.png");
		}
		if (currentLap > 1) {
			print(40, viewportH - 80, String.format(
					"Lap 1: %d:%02d:%02d  Money: $%d", minutes[0], seconds[0],
					milliseconds[0], lapMoney[0]), 20, "Font/timeFont.png");
		} else {
			print(40, viewportH - 80, "Lap 1: -:--:--  Money: $0", 20,
					"Font/timeFont.png");
		}
		if (currentLap > 2) {
			print(40, viewportH - 105, String.format(
					"Lap 2: %d:%02d:%02d  Money: $%d", minutes[1], seconds[1],
					milliseconds[1], lapMoney[1]), 20, "Font/timeFont.png");
		} else {
			print(40, viewportH - 105, "Lap 2: -:--:--  Money: $0", 20,
					"Font/timeFont.png");
		}
		if (currentLap > 3) {
			print(40, viewportH - 130, String.format(
					"Lap 3: %d:%02d:%02d  Money: $%d", minutes[2], seconds[2],
					milliseconds[2], lapMoney[2]), 20, "Font/timeFont.png");
		} else {
			print(40, viewportH - 130, "Lap 3: -:--:--  Money: $0", 20,
					"Font/timeFont.png");
		}
	}