public String getTime() {
		if (running == true)
			endTime = System.currentTimeMillis();
		
		long elapsed = endTime - startTime;
		String time = "";
		
		// hours
		time += (elapsed / 3600000); 
		time += ":";
		
		// minutes
		int min = (int) ((elapsed / 60000) % 60);
		if (min / 10 == 0)
			time += "0";
		time += min;
		time += ":";
		
		// seconds
		int sec = (int) ((elapsed / 1000) % 60);
		if (sec / 10 == 0)
			time += "0";
		time += sec;
		time += ":";
		
		// milliseconds
		int msec = (int) (elapsed % 1000);
		if (msec / 100 == 0) {
			time += "0";
			if (msec / 10 == 0)
				time += "0";
		}
		time += msec;
		
		return time;
	}