Logging execution time?
Ryujakk
New Altair Community Member
Hello,
I want to log the execution time of an operator in a log file using the Log operator. However, when I use to Log operator, and ask for the time, RM returns (currentTime - operatorStartTime). What I want is (operatorEndTime - operatorStartTime), which is logged at FINEST level as "operator: execution time was xxx.xx ms". Is there a simple way to do this?
Thank you,
- R
I want to log the execution time of an operator in a log file using the Log operator. However, when I use to Log operator, and ask for the time, RM returns (currentTime - operatorStartTime). What I want is (operatorEndTime - operatorStartTime), which is logged at FINEST level as "operator: execution time was xxx.xx ms". Is there a simple way to do this?
Thank you,
- R
Tagged:
0
Answers
-
Hi,
currently this is not possible. You might put the logging operator directly behind to avoid other's operators runtime to avoid confusing this. If this is not possible, you could do a simple trick: Log the time of the operator you are interested in and the directly following one. At the end of the process, change the log to an ExampleSet and use the generate attribute operator to build the difference which will be the runtime of the first operator...
Greetings,
Sebastian0