Capture Time Taken to Complete Form

Capture Time Taken to Complete Form

Is it possible to set a function which would allow you to see how much time it took a person to complete a form?