a demo timer. can count the window.onFocus time