Link to home
Start Free TrialLog in
Avatar of Xyptilon2
Xyptilon2Flag for China

asked on

Getting Two Timestamp and calculate the difference

How do i get a timestamp upon pressing a button and get another 1 upon pressing another button. and then caculate the difference so the output is like

The difference is: 5m 10s
The difference is: 1h 15m 12s

Basically i want some functionality that says per event, this event last happened "x time" ago. In this example..it are two buttonClicks (different buttons), global variables can be used.
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial