Py2: [skip ci] provide time._process_time

This commit is contained in:
wmayer
2020-01-18 12:21:00 +01:00
parent 1ad0d00ab3
commit 6866397c14

View File

@@ -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.