I have used TimePicker to make the user to choose time see here and here also. But I didnot find a way to make the user to select second also. Now user can select Hour and Minut
The best way around this would be to create three separate 'number pickers' instead of timepicker... I placed them within a linear layout and its working fine.
Then all you do is store the values inside three separate variables. int Hours, int Minutes, int Seconds and do your calculating.
This was my way around it without downloading any external sources which may contain viruses.