public static String getTime()
	{
		//Get Time firstly
		Calendar cal = Calendar.getInstance();

		// Get the components of the time
		String hour24 = Integer.toString(cal.get(Calendar.HOUR_OF_DAY));     // 0..23
		String min = Integer.toString(cal.get(Calendar.MINUTE));             // 0..59
		String sec = Integer.toString(cal.get(Calendar.SECOND));             // 0..59
		String ms = Integer.toString(cal.get(Calendar.MILLISECOND));         // 0..999

		return hour24+":"+min+":"+sec+"."+ms;
	}