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

Support using result as a float directly #1

Open
LukeWood opened this issue Mar 15, 2022 · 0 comments
Open

Support using result as a float directly #1

LukeWood opened this issue Mar 15, 2022 · 0 comments

Comments

@LukeWood
Copy link
Owner

ideally you could also use the timer as a float directly:

with ez_timer() as runtime:
    1 + 1
print(runtime + 1)
# 1.000001

This can be implemented by overriding add, subtract, and all other float methods.

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