You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not documented (my bad...) but the Backend has an attribute called comp_time that can be filled with the actual time spent in the powerflow (this can be used to make benchmark between different backends easier).
Adding a first version of it in the package would not be difficult, it would require to change 2 functions:
While this function normally returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls.
The text was updated successfully, but these errors were encountered:
It is not documented (my bad...) but the Backend has an attribute called
comp_time
that can be filled with the actual time spent in the powerflow (this can be used to make benchmark between different backends easier).Adding a first version of it in the package would not be difficult, it would require to change 2 functions:
and
Also as a reference, when benchmarking times in python it's best to use
time.perf_counter()
rather thantime.time()
I can of course do a PR for this if you prefer :-)
Indeed, perf_counter() is guaranteed to be monotonic (always increase) as per the doc https://docs.python.org/3/library/time.html#time.perf_counter
But time.time() can sometimes go backward (https://docs.python.org/3/library/time.html#time.time)
The text was updated successfully, but these errors were encountered: