You have a smart button to start & stop your task.
When you start your task, it will automatically process a time sheet entry for that particular task with starting time.
When you toggle it to pause, the task end date will be updated and the duration gets automatically calculated