I want to calculate total time taken of executing a method, I have writtem a job , however it returns only till seconds. If I change the sleep to 100 it returns blank since the process took milliseconds to complete .
I want that milliseconds also if the process executes in milliseconds.
FromTime startTime = timeNow();//DateTimeUtil::getSystemDateTime();
info(strFmt(“Total time taken To execute is %1”,timeConsumed(startTime,timeNow())));