Calculate the execution time of operations in ECL

ECL is not a procedural language, that is, the order in which operations are performed is not necessarily the order given by the code, which can cause trouble in calculating the execution time of operations. This blog describes how to calculate the execution time of certain operations for users to evaluate performance.

In ECL, you can use the following code to get the current system time:

1
2
IMPORT STD;
STD.Date.CurrentTime(TRUE);

Use ORDERED or SEQUENCIAL to force certain operations to be executed in order:

1
2
3
4
ORDERED([OUTPUT(STD.Date.CurrentTime(TRUE), NAMED('startTime')), 
operations.....,
OUTPUT(STD.Date.CurrentTime(TRUE), NAMED('endTime')),
Some operations]);

Reference:

Did you really mean SEQUENTIAL?