Tuesday, May 3, 2016

Time Consumed method


If you want to get the total time consumed by a method, you can use the timeConsumed method in the following way which works great to show how long a method took to run.


FromTime startTime = timeNow();
//blahblah.doiT()
    info(strFmt("Total time consumed is  %1", timeConsumed(startTime, timeNow())));

No comments:

Post a Comment