Slightly more accurate loading time to include initialisation time

This commit is contained in:
Dion Moult
2024-09-23 18:14:52 +10:00
parent 621393e67a
commit c30ac2d061
+1 -1
View File
@@ -719,6 +719,7 @@ class IfcImporter:
products: set[ifcopenshell.entity_instance],
settings: Optional[ifcopenshell.geom.main.settings] = None,
) -> set[ifcopenshell.entity_instance]:
checkpoint = time.time()
results = set()
if not products:
return results
@@ -741,7 +742,6 @@ class IfcImporter:
valid_file = iterator.initialize()
if not valid_file:
return results
checkpoint = time.time()
progress = 0
total = len(products)
start_progress = self.progress