Friday, March 21, 2014

Total time Consumed to run a business logic

// 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

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...