Like I don't want the Macro to stop in the Middle.
Let me take a small example.
Lets say My Macro is 10 lines long. Doing some basic stuff clicks and all, yeah. then at the end it stops.
That's when I need the message Box.
This message Box needs me to give me information line by line. ( wouldn't mind even if it's message Box after message Box at the end either ) But what should they contain,
Box 1 / Line 1 : The Entire Run time of the 10 Lines Box 2 / Line 2 : ( Now this should get generated after a calculation, because physically the coding lines aren't available ) The Entire Run time "IF" it was 100 Lines ( Like if I had copy pasted these 10 lines one after the other 10 times, it would be 100 lines ) Box 3 / Line 3 : ( Now this should get generated after a calculation, because physically the coding lines aren't available ) The Entire Run time "IF" it was 200 Lines ( Like if I had copy pasted these 10 lines one after the other 20 times, it would be 200 lines )
Is this possible, well...sorta but not really with MMM how it is currently. zeak pointed out the %TIME_MACRO% variable. This is ok for getting the running time but thats about it. It not great for doing any logic around it. There are other TIME variables:
%TIME% - The current time in full %TIME_MS% - The current ms %TIME_S% - the current second %TIME_M% - the current minute %TIME_H% - the current hour
The %TIME_MACRO% internal variable is now expanded to include granular total output: %TIME_MACRO_H% - The total running time in hours %TIME_MACRO_M% - The total running time in minutes %TIME_MACRO_S% - The total running time in seconds %TIME_MACRO_MS% - The total running time in milliseconds
The new variables will allow for logic like this: 10 | IF | INTEGER VARIABLE | %TIME_MACRO_M% | LESS THAN | 5 | GOTO MACRO LINE | PROCESS | ELSE | 10 | RUN ACTION | GOTO MACRO LINE | STAGE
The new variables will also make it easier to do some math operations against the time: 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::%TIME_MACRO_M%::*100