Is there any way to extract the Duration of a pulumi update/destroy (through automation api) from the output? (seeing that the duration is only part of the standard output so something along the lines
pulumi_output = stack.up(on_output=print)
or do I need to parse the output in a callback for achieving this?