From a7286e5527f01e4c28bb59ba3580d020bb07cfa9 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 3 Sep 2019 20:51:58 +1000 Subject: [PATCH] Add a timer for export times --- export.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/export.py b/export.py index e6cb338857..2af11cb9f6 100644 --- a/export.py +++ b/export.py @@ -2,6 +2,7 @@ import ifcopenshell import bpy import csv import json +import time from pathlib import Path from mathutils import Vector @@ -427,6 +428,9 @@ class IfcExporter(): [ self.ifc_parser.products[o]['ifc'] for o in related_objects], self.ifc_parser.type_products[relating_type]['ifc']) +print('# Starting export') +start = time.time() ifc_parser = IfcParser() ifc_exporter = IfcExporter(ifc_parser) ifc_exporter.export() +print('# Export finished in {:.2f} seconds'.format(time.time() - start))