We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Hey.. you mean pause/start option? I think .stop() can be used to reset
.stop()
Sorry, something went wrong.
int a = 0; int resetTimer(Timer &timer) { timer.stop(); cout << "Timer reset" << endl; timer.setTimeout(& { std:cout << a <<std::endl; a++; }, 5000); return 1; }
int main() { Timer t = Timer(); resetTimer(t); while (true) { std::this_thread::sleep_for(std::chrono::milliseconds(2000)); resetTimer(t); } // while(true); // Keep main thread active } ####### Output ####### Timer reset 0 Timer reset 1 Timer reset 2 Timer reset 3 Timer reset 4 Timer reset 5
If its actually resetting, "a" should never be output
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: