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
6.0 KiB
6.0 KiB