getElapsedMs

result := STD.System.Log.getElapsedMs ();

Return:getElapsedMs returns returns the elapsed time in milliseconds.

The getElapsedMs function returns the current elapsed query time (in ms) in Roxie.

This is the elapsed time when STD.System.Log.getElapsedMs() is called. Because ECL is a declarative language, code is not necessarily executed in sequence. You have to be careful when trying to get the elapsed time for a particular point in your code. You can look at the Workunit graphs to see the exact point at which the activity executes.

For use in Roxie only. An error is returned if you try to run on Thor or hThor.

Example:

IMPORT STD;
STD.System.Debug.Sleep (1054);      // pause processing for 1054 milliseconds.
OUTPUT(STD.System.Log.getElapsedMs(), NAMED('Elapsed')); //returns total time elapsed