-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time-Keeping Library #256
Comments
I prototyped a bit more, and I think, I tackle these design goals:
My implementation plan so far is to:
I intend to prepare a PR soon. I guess this essentially resolves the placing question that I had earlier. |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was recently playing around with trying to benchmark stuff on my Arduino Uno. Thus, I wanted to get a time source on the Arduino to check how long executing some code takes. Of course, I read your awesome blog post about writing a
millis()
functionUnfortunately, milliseconds were a bit coarse for me, so I went ahead and also implemented a
micros()
function. This involved quite a bit of tricky code, and so I'm wondering about how to turn this into a library. My code so far.Foremost, I'm wondering where would be the best place to put such a library:
avr-hal
, maybearduino-hal
(but as you mentioned in your blog post, statically hooking up an interrupt, might be not appropriate for the HAL)Any advice is welcome.
The text was updated successfully, but these errors were encountered: