Logging execution time?

RyujakkRyujakk Member Posts: 17 Maven
edited November 2018 in Help
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

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    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,
      Sebastian
Sign In or Register to comment.