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], products: set[ifcopenshell.entity_instance],
settings: Optional[ifcopenshell.geom.main.settings] = None, settings: Optional[ifcopenshell.geom.main.settings] = None,
) -> set[ifcopenshell.entity_instance]: ) -> set[ifcopenshell.entity_instance]:
checkpoint = time.time()
results = set() results = set()
if not products: if not products:
return results return results
@@ -741,7 +742,6 @@ class IfcImporter:
valid_file = iterator.initialize() valid_file = iterator.initialize()
if not valid_file: if not valid_file:
return results return results
checkpoint = time.time()
progress = 0 progress = 0
total = len(products) total = len(products)
start_progress = self.progress start_progress = self.progress