diff --git a/src/App/FreeCADInit.py b/src/App/FreeCADInit.py index 70366570c4..336c9cf1d7 100644 --- a/src/App/FreeCADInit.py +++ b/src/App/FreeCADInit.py @@ -247,6 +247,12 @@ except ImportError: FreeCAD.Console.PrintError("\n\nSeems the python standard libs are not installed, bailing out!\n\n") raise +# Backward compatibility to Py2 +import sys +if sys.version_info.major < 3: + import time + time.process_time = time.clock + class FCADLogger(object): '''Convenient class for tagged logging.