Do not think that in Tfs there is something out of the box that allows you to automatically track the time.
I worked in a project where we used Pomodoro technique to track time spent. The whole team used Pomorodo sequences for 20 minutes, and we added a custom field to capture the number of Pomodoro sequences for each task - both actual and evaluated.
The tool we used to track time was Pomodairo , which was outside our development environment. I see that there is a Visual Studio extension , but I have not used it personally.
source
share