If (command == 1) { System.out.print("Enter ID : "); int ID = br.readLine(); long lngStart (new Date()).getTime(); SELECT * From DVD WHERE ID = "+ID+"; long lngEnd = (new Date()).getTime(); System.out.println ("Client Enter Rate " + ((double) (long lngEnd - lngStart)/1000) + "s"); } To kit : this is the Mr.Willson Timer code