Tuesday, 15 November 2016





Calculating code Execution time

This code is used to measure the code execution in millisecond and then convert in second.
Try to put this code in your code that you want to mesure.

public void GetExecutiontime()
{
int start;
int end;
int milliseconds;
real seconds;

;
start = winAPI::getTickCount();
sleep(1000);
end = winapi::getTickCount();
milliseconds = end - start;

seconds = milliseconds / 1000;
info(strfmt("total seconds - %1", seconds));
}


I put this code in my class then call this mathod in run mathod.

If you want to run this code in job then run .




Thanks


Akshay

No comments:

Post a Comment