use-timer icon indicating copy to clipboard operation
use-timer copied to clipboard

Consider using Milliseconds instead of seconds

Open prince272 opened this issue 2 years ago • 1 comments

First of all, I'd like to say, this is a very nice and intelligent library.

Now for the question: Since milliseconds is known to be the basic unit of time, please consider using them instead of seconds. setInterval and setTimeout were respectful of those basic units, and useTimer should be as well.

Thank you very much and happy coding... :)

prince272 avatar Aug 22 '22 09:08 prince272

Can you not use the interval option and set this to 1?

david-cord avatar Mar 09 '23 12:03 david-cord