This topic was automatically generated from Slack. You can find the original thread here.
Hi , How can I get the execution time of my workflow to be used in next step (considering time taken to execute all the above steps).
This topic was automatically generated from Slack. You can find the original thread here.
Hi , How can I get the execution time of my workflow to be used in next step (considering time taken to execute all the above steps).
Hi Radhika, the execution time is not a path you can copy and use in further steps i believe. But i found the option to do smth like this: console.time(‘test’);
//some code
console.timeEnd(‘test’); //Prints -> test: 11374.004ms
So in every step you measure the execution time yourself and give it out in the return function of the step
OK it works! But how do I return it instead of logging.
Ok it works fine. But how do I get time for steps with inbuilt connectors instead of code snippets?
I don’t have a clou for that, sorry. Maybe you try reaching out to one of Pipedreams staff
An idea would be to put one code snippet to the start of your workflow returning the „now“ and as a last step also a code that calculates the time passed … should work