MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / log_timepoints

Method log_timepoints

src/ifcgeom/Iterator.cpp:455–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void IfcGeom::Iterator::log_timepoints() const {
456 using std::chrono::high_resolution_clock;
457 using std::chrono::duration;
458 using namespace std::string_literals;
459
460 std::array<std::string, 3> labels = {
461 "Initializing mapping"s,
462 "Performing mapping"s,
463 "Geometry interpretation"s
464 };
465
466 for (auto it = time_points.begin() + 1; it != time_points.end(); ++it) {
467 auto jt = it - 1;
468 duration<double, std::milli> ms_double = (*it) - (*jt);
469 Logger::Notice(labels[std::distance(time_points.begin(), jt)] + " took " + std::to_string(ms_double.count()) + "ms");
470 }
471}
472
473void IfcGeom::Iterator::validate_iterator_state() const {
474 if (!initialization_outcome_) {

Callers

nothing calls this directly

Calls 5

NoticeFunction · 0.85
to_stringFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected