Wednesday, February 9, 2011

Counting how long a job takes

use this code to keep track of how long a piece of code takes to execute

timeofday starttime = timenow();
;
//your cool code here

info(strfmt("Total time taken: %1", time2StrHMS(timenow() - starttime)));

No comments:

Post a Comment