Measuring exact process time
I would like to measure the precise time a process is running (in ms). The process in question is run on RM Server and is triggered, whenever a call to the service is made. All RM processes have by default the macro "process_start", although I am not sure, if it really measures the starting value I am looking for. Hence I was wondering, what the best way would be to get the precise process start and end time for RM services, as those are not logged, unless you build the log within the process.
The best I could come up with is either generating attributes with date_millis() or macros in the same way and then calculate the process time. However, this would add time to the process (which should be kept at a minimum) and I can't really say, if this only an unsignificant amout (in my specifice case < 5ms) or more.
Has somebody else found a better solution for this? Any ideas would be appreciated. Thank you.