Community Commons TimeMeasureEnd to return the time taken to execute - Mendix Forum

Community Commons TimeMeasureEnd to return the time taken to execute

2

Currently, the TimeMeasureEnd Java Action in Community Commons returns the time in milliseconds (since 1st January 1970) that TimeMeasureStart was run.

I think it would make more sense for TimeMeasureEnd to return the time in milliseconds between TimeMeasureStart and TimeMeasureEnd being called. This is the value that is already being sent to the log by the action.

It would be a simple change in Logging.java to make the return line in measureEnd

return cur - timers.get(timerName);

I can make this change and submit it, but what does the community think? Is this a sensible thing to do?

asked
0 answers