Files
create/src/Gui/PythonTracing.cpp
bdieterm b9ec2ee3db Gui: improve performance of macro execution and fix time measurement
This commit improves the performance of Python code from FreeCAD macros by:
* using the chrono C++ stdlib header instead of QTime
* checking for the elapsed time ONLY every 1000th Python opcode execution

And this commit fixes time measurement by using a monotonic time source
instead of a normal one.
The previous implementation using QTime would give a negative time duration
if the start time is 23:59:59 and the end time is 00:00:01.

related commit: beeda0e47f051722d6096c99bd949b390e197bdc
2024-11-22 12:20:14 -05:00

6.0 KiB