-
Notifications
You must be signed in to change notification settings - Fork 3
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
Question/Feature Request: return timing information only #6
Comments
I think I have answered this in issue #5 |
Many thanks for the quick replies and suggestsions Ruud! Very elegant. Using
It might be beyond the scope of what you intended for |
I think it is not possible to define a generic function to realise what you would like. |
I'd like to compare two functions
loop1
andloop2
, running each of themcount
times, and compare the average durations.I've raised a separate issue about capturing the output e.g.
y| returned None from loop1() in 0.414763 seconds
and it's easy enough to parse that string to get just the duration0.414763
as a float or datetime object, but I wondered if it would be an easy enough enhancement to add keyword argument e.g.x = y(loop(), duration_only=True)
for users just wanting to record durations and do further analysis (calculate the mean, plot a graph comparing the two loops etc)?Or have I just missed an easy way of achieving this from the README?
OUTPUT
The text was updated successfully, but these errors were encountered: