title: Start/Pause the timer on click events
body: <p>I want to start the timer on the start , which will be in the format MM:SS after an hour format should look like HH:MM:SS. on pause the timer should stop again . User can start/Pause any time the timer should continue from the last time it was paused.</p>
  <pre><code>start(){
  setInterval(()=&gt;{
  let timer = 0;
  let minutes = 0 ;
  let hour = 0 ;
  let seconds = 0;
  
  if(seconds &gt; 3600){ // to increment the hour value
  
  }
  
  if( minutes &lt; 60){ // to calculate minutes
  }
  
  concole.log(timer); //to get timer value in format MM:SS and HH:MM:SS 
  
  },1000)
  
  }
  
  pauseTimer(){
  // need to implement logic
  }
  </code></pre>
  <p>Need to implement a logic to get a timer continue/pause. I am getting confused to implement login for start and pause function.</p>