if save() method is called, I need to check if user responded to confirm at line no. 1 with in one minute or after one minute.
But above code does not work, even if user clicks after one minute at line 1.
first save() method is performed completely than only oneMinPassed becomes true.
I am avoiding using client machine clock (I meant trying to avoid, new Date(); & reason is what if user change the time after getting alert message at line no. 1).
Otherwise if I use following, it works.