I have the below piece of code in the post running action and does what it is supposed to do and display the required information on the web page i have developed for the business. What i want to have is the run time (Elapsed time) for each job on the list I have. How do I calculate the difference in RUNEND and RUNSTART? Please help
tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","RUNSTART");
tv.setColumnValue(j.getRunStart().toFormattedString("dd-MMM-yyyy HH:mm:ss"));
tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","RUNEND");
tv.setColumnValue(j.getRunEnd().toFormattedString("dd-MMM-yyyy HH:mm:ss"));
tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","STATUS");
tv.setColumnValue(j.getStatus().name().toUpperCase());
Thank You