I'm currently developing a firefox extension which checks some server side XML-File on a regular basis (every 2 minutes). I want to add the following feature:
Whenever the user is inactive for X minutes the check interval is extended by a multiplicatior of Y until a limit of Z is reached. In order to do so, I need the inactivity time. Is this value (or something like it) already generated by firefox internally? If so: How can I access it from my extension? And if not: Is there a way to generated it on my own?