// Total time Consumed to run a business logic
static void TimeConsumed(Args _args)
{
FromTime startTime = timeNow();
int i;
str dummyStr;
;
for (i = 1 ; i <= 500000; i++)
{
dummyStr += int2str(i);
}
info(strFmt("Total time consumed is %1", timeConsumed(startTime, timeNow())));
}
No comments:
Post a Comment