Add a timer for export times

This commit is contained in:
Dion Moult
2019-09-03 20:51:58 +10:00
parent c055a8e9e8
commit a7286e5527
+4
View File
@@ -2,6 +2,7 @@ import ifcopenshell
import bpy import bpy
import csv import csv
import json import json
import time
from pathlib import Path from pathlib import Path
from mathutils import Vector from mathutils import Vector
@@ -427,6 +428,9 @@ class IfcExporter():
[ self.ifc_parser.products[o]['ifc'] for o in related_objects], [ self.ifc_parser.products[o]['ifc'] for o in related_objects],
self.ifc_parser.type_products[relating_type]['ifc']) self.ifc_parser.type_products[relating_type]['ifc'])
print('# Starting export')
start = time.time()
ifc_parser = IfcParser() ifc_parser = IfcParser()
ifc_exporter = IfcExporter(ifc_parser) ifc_exporter = IfcExporter(ifc_parser)
ifc_exporter.export() ifc_exporter.export()
print('# Export finished in {:.2f} seconds'.format(time.time() - start))