Hi, I am fairly new to Power Apps and I'm tasked to create a productivity tracker with the following requirements:
1. Track and record time spent on each item.
2. Allow the time to be paused and resumed but only return the time spent on the task excluding the idle time in between.
3. Allow to switch tasks in between.
Currently, I was able to create the SharePoint List and the base App; however, I am having an issue on the 'timer'. The app includes a Gallery with 'Add Icon' which I am intending to use as the trigger to start the timer and record the current time using Now() but it's not working. I also intend to use the 'Check Icon' as SubmitForm to trigger end timer and record again using Now().
Here's a screen grab of my list and app. Hope someone can help out.


Start Time
NewForm(Form1); UpdateContext({newMode: true});
Set(varNewItem,Patch('Test-UW DAR',Defaults('Test-UW DAR'),{Title: User().FullName,Start: Now(), 'Active Session': true}));
UpdateContext({VarTimerActive: true});
UpdateContext({VarTimerReset: false});
End Time
SubmitForm(Form1);
Set(varNewItem,Patch('Test-UW DAR',Defaults('Test-UW DAR'),{End: Now(), 'Active Session': false}));
UpdateContext({VarTimerActive: false});
UpdateContext({VarTimerReset: true})
Thanks in advance!