>>I need to know how many Milliseconds takes some operations between scan and endscan
>
>Use the seconds() function it gives resolution in milliseconds. See VFP help for some tips. Note: it is the number of seconds since midnight, so you will need some code to compensate for the rollover.
If you really need millisecond resolution, the internal time really is not accurate; under NT, it is never better than 1/100th of a second, and the unit of execution with more than one thing running (and there's always more than 1 thing running) is significantly longer than 1 ms, so other tasks may reduce the accuracy of measure. You're better off to run several thousand or million iterations, get a total duration and then divide by the iteration count.