How can I time in seconds the user spends on each tab??