Skip to content
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

Add some timer abilities #104

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

this-marwan
Copy link

Hello!

Alot of times I'd wish I had a stopwatch I can set and reset whenever I need to. Usually I can do this with some workarounds using millis(). And that's what I intended to do with the added functions.
The functions simply mimic the use of millis() but with respect to a point in time the user can choose. (Say 150ms after a certain event happens)

This a first commit. Code Untested.
Added Example that uses timerEvery func
Fix Syntax Highlight
Fixed timerEvery func
(all fixes are tested)
Added example that demonstrates the use of timerReset.
Fixed datatypes of function to unsigned long to allow operation on results of functions.
All functions have been tested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant