title: Reset timer after event in angular 2
body: <p>I am implementing logout after 15 mins idle session without using 3rd party lib or ngrx.
  I have created a service:</p>
  
  <pre><code>run(){
      window.onload = () =&gt; {this.startTimer()};
      window.onmousemove = () =&gt; {this.resetTimer()};
  }
  
  startTimer(){
      let ticks = Observable.timer(0, 1000);
      return ticks
  }
  resetTimer(){
      // code here
  }
  
  sessionTimeOut(){
      // logic to logout
      this.resetTimer().subscribe(val =&gt;{console.log(val)}
  }
  </code></pre>
  
  <p>I have create few approach using some <code>rxjs</code> functions, none of them has worked so far, Is it possible to get some help on <code>resetTimer()</code> method? thank you.</p>