Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MACRO- Run time question

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
jsweatherbie
377 Views, 4 Replies

MACRO- Run time question

I see that when macros run they read the empty lines within the macro and even comments.

does that effect the macro response time ? 
If I deleted the unnecessary empty lines would that make the run time faster? 

Tags (1)
Labels (1)
4 REPLIES 4
Message 2 of 5
icse
in reply to: jsweatherbie

You can test ityourself,

 

//start recording time
int $time = time()

//your macro code

//displays the runtime in a message box 
$time = time() - $time
message info $time

 

output time is in seconds

 

Message 3 of 5
jsweatherbie
in reply to: icse

Ouh shoot i didnt even think of that lol 🤣🤣🤣

Message 4 of 5
icse
in reply to: jsweatherbie

Please share your results, I would be very intrested how much it is 🙂

Message 5 of 5
a_bako
in reply to: icse

Or (oldschool mode):

 

// start internal clock

CLOCK RESET QUIT
CLOCK ON QUIT

...

...

// display result

CLOCK PRINT QUIT

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report