Thomas W Posted August 24, 2023 Share Posted August 24, 2023 Hi all, I wanted to know if there was a function that would display the execution time of a script, a bit like what is displayed at the bottom left when there is a script error, visible on the screenshot below -below. I searched here but couldn't find anything : https://developer.vectorworks.net/index.php/VS:Function_Reference Thanks and have a great day! Quote Link to comment
Vectorworks, Inc Employee klinzey Posted August 24, 2023 Vectorworks, Inc Employee Share Posted August 24, 2023 You can use GetTickCount() at points in the script to get a sense of time. It's 1/60 of a second. If you get the count at the start of the script then you can calculate the run time to any point in the script by calling GetTickCount again. 2 Quote Link to comment
Thomas W Posted August 24, 2023 Author Share Posted August 24, 2023 Thank you very much Kevin! I will test this right away! Quote Link to comment
Thomas W Posted August 24, 2023 Author Share Posted August 24, 2023 tested! Thanks it works very well, it was exactly what I was looking for! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.