Krb686 / nanotimer

A much higher accuracy timer object that makes use of the node.js hrtime function call.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clearTimeout

omarojo opened this issue · comments

Is there a way to clear the Timeout procedure ? so that I can reset the timer before it times out? And start again from the beginning ?

I'm wondering the same thing.
@omarojo have you figured something out?

EDIT:
For anyone it may concern: I've simply called timer.setTimeout() again, and it seems to override the previous call. Not sure whether this has any side effects or not.

Hi omarojo! Apologies for such a late response here. I have added the functionality you requested. It is available currently from here on the repo, but I am running into issues attempting to publish to npm, and it looks like the problem may be on their end. I will add a comment here when the updated version is available through npm.

The NPM issue is resolved and so the latest version has been published.