🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Logging execution time?

User: "Ryujakk"
New Altair Community Member
Updated by Jocelyn
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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "land"
    New Altair Community Member
    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