AnsweredAssumed Answered

Get statistic runtime for windows job after execution

Question asked by JamesFenoulhet611119 on Oct 24, 2016
Latest reply on Oct 28, 2016 by JamesFenoulhet611119
I have found the $runtime variable but cannot get it to return anything other than zero.
As stated in the help guide;
"The task's current runtime in seconds.

This value will always be 0 when you use the variable in the Pre-Process or Process tab. This is because the variable will be resolved at the same time as the script is being generated."

So I have tried it in the post process tab and i get +0000000000000000 as a result. How do i use this variable to get the runtime of the job?

I can think of a number of other ways of getting the runtime of my job for logging purposes but was more curios about using the aforementioned variable. My searches have yielded nothing in correct usage.