Add ProtocolDAGResult.total_time()
convenience method for getting total execution time
#450
Labels
Milestone
Currently, to get the total accumulated execution time of a
ProtocolDAGResult
, one must extract the start and end times of eachProtocolUnitResult
and sum them up, like so:It would be valuable to have a convenience method, such as
ProtocolDAGResult.total_time()
, that performs this summation and returns the total time in seconds.This method could also optionally take a keyword-argument to indicate whether or not to include
ProtocolUnitFailure
s in its summation. If not, it would sum over ProtocolDAGResult.protocol_unit_successesinstead of all
protocol_unit_results`.The text was updated successfully, but these errors were encountered: