Hi Narender,
I think you could either use the StopWatch object if you have the HISUtils plug-in or use the aqDateTime object.
In the first case:
funcion Test()
{
var stpWatch = HISUtils.StopWatch;
StopWatch.Start();
MySearchOperation();
StopWatch.Stop();
Log.Message ("Difference in times: " + StopWatch.ToString());
}
In the second case:
function Test()
{
var startTime = aqDateTime.Time();
MySearchOperation();
var stopTime = aqDateTime.Time();
var diffTime = aqDateTime(startTime, stopTime);
//Difference in times (Days:Hours:Minutes:Seconds)
Log.Message( aqConvert.TimeIntervalToStr(diffTime));
}
For more specifics, please check TestComplete help.