stop watch if the mouse is still

stop watch if the mouse is still

hey I am using Minimal Stopwatch & Countdown App In jQuery - js-timer

I modified the code a bit according to my needs

When the page loads the counter starts counting :

1- when the mouse is idle for like 5 second i stop time

2-if the mouse is active after 5 seconds the counter triggers or it stopped

I am blocked at stage 1 and 2 here is my code

https://jsfiddle.net/poeh90tb/