thibaultboursier / use-timer

A timer hook for React
MIT License
198 stars 24 forks source link

Consider using Milliseconds instead of seconds #83

Open prince272 opened 2 years ago

prince272 commented 2 years ago

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... :)

david-cord commented 1 year ago

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