Develop a timer function that starts when a user starts typing and stops when the user completes their input. This timer should be added to the application, ensuring a good user experience.