Last active
August 29, 2015 13:56
-
-
Save seanmtracey/9187682 to your computer and use it in GitHub Desktop.
Simple Processing function to make your code wait for a period of time.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void wait(int timeToWait){ | |
int startTime = millis(); | |
while (millis() < (startTime + timeToWait)); | |
} |
Of course! Good shout :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can just terminate the while with a semicolon