mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
Slightly more accurate loading time to include initialisation time
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user