I'm trying to create a button that records different timestamps every time the user presses it(also display what they recorded right below the button), and it'll be recorded in a collection as pairs of start and end time stamps. However, my code only records the same time stamp in the collection for start and end when I press the button.
Here's what I have right now:


Instead, it should look more like this as an example:

Please let me know how I can correct my code to achieve this results.