From be8cfeeadf9499cfec0a5ad1d835e4d537aabaae Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 31 Mar 2014 14:03:06 +0000 Subject: [PATCH] Measure conversion time of IfcConvert more faithfully --- src/ifcconvert/IfcConvert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index bbc712270e..f700e939dd 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -230,6 +230,8 @@ int main(int argc, char** argv) { } } + time_t start,end; + time(&start); // Parse the file supplied in argv[1]. Returns true on succes. if ( ! IfcGeomObjects::Init(input_filename, &std::cout, &log_stream) ) { Logger::Message(Logger::LOG_ERROR, "Unable to parse .ifc file or no geometrical entities found"); @@ -247,8 +249,6 @@ int main(int argc, char** argv) { std::set materials; - time_t start,end; - time(&start); int old_progress = -1; Logger::Status("Creating geometry...");