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

Repeat.total_time_remaining is simply incorrect. #498

Open
CookStar opened this issue Nov 10, 2024 · 0 comments
Open

Repeat.total_time_remaining is simply incorrect. #498

CookStar opened this issue Nov 10, 2024 · 0 comments

Comments

@CookStar
Copy link
Contributor

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
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

1 participant