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
Code:
def r(): print("time_remaining", repeat.total_time_remaining) print("time_elapsed", repeat.total_time_elapsed) repeat = Repeat(r, cancel_on_level_end=True) repeat.start(1, 10) print("total_time_remaining", repeat.total_time_remaining) print("total_time_elapsed", repeat.total_time_elapsed) print("total_time", repeat.total_time)
Output:
total_time_remaining 11.0 total_time_elapsed 0.0 total_time 10 time_remaining 10.0 time_elapsed 1.0080575942993164 time_remaining 9.0 time_elapsed 2.013115167617798 time_remaining 8.0 time_elapsed 3.0181725025177 time_remaining 7.0 time_elapsed 4.023230075836182 time_remaining 6.0 time_elapsed 5.028287410736084 time_remaining 5.0 time_elapsed 6.033344984054565 time_remaining 4.0 time_elapsed 7.038402557373047 time_remaining 3.0 time_elapsed 8.043460130691528 time_remaining 2.0 time_elapsed 9.04851746559143 time_remaining None time_elapsed 10.052574872970581
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code:
Output:
The text was updated successfully, but these errors were encountered: