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

Is the timer running? #25

Open
phillip-toone opened this issue Mar 15, 2019 · 3 comments
Open

Is the timer running? #25

phillip-toone opened this issue Mar 15, 2019 · 3 comments

Comments

@phillip-toone
Copy link

Is there a way to query the state of the timer to see if it is running. I use a global boolean variable called isTimerRunning that I set to true or false every time I pause or resume the timer. It seems to me that there would be a method I can use to request the state of the timer. I've looked but haven't been able to find anything in the examples codes or in the keywords.txt file.

@AndrewMascolo
Copy link
Owner

AndrewMascolo commented Mar 15, 2019 via email

@phillip-toone
Copy link
Author

The following function give me what I was looking for:

  boolean isTimerRunning() // output true if timer is running.
  {
    if(Paused)
      return false;
    else
      return true;
  }

I would like to add this code to this public library but I am not sure the best way to do this. Should I fork the project, make the changes, and push the changes back into master. Sorry if this is a stupid question but I am a novice with github and would like to learn. Thanks.

@AndrewMascolo
Copy link
Owner

AndrewMascolo commented Mar 18, 2019 via email

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

No branches or pull requests

2 participants