diff --git a/gtsam/base/timing.cpp b/gtsam/base/timing.cpp index 57321b0b0..a0710ceda 100644 --- a/gtsam/base/timing.cpp +++ b/gtsam/base/timing.cpp @@ -31,7 +31,9 @@ namespace gtsam { namespace internal { - + +using ChildOrder = FastMap>; + // a static shared_ptr to TimingOutline with nullptr as the pointer const static std::shared_ptr nullTimingOutline; @@ -91,7 +93,6 @@ void TimingOutline::print(const std::string& outline) const { << n_ << " times, " << wall() << " wall, " << secs() << " children, min: " << min() << " max: " << max() << ")\n"; // Order children - typedef FastMap > ChildOrder; ChildOrder childOrder; for(const ChildMap::value_type& child: children_) { childOrder[child.second->myOrder_] = child.second; @@ -116,7 +117,6 @@ void TimingOutline::printCsvHeader(bool addLineBreak) const { << "," << label_ + " min time (s)" << "," << label_ + "max time(s)" << ","; // Order children - typedef FastMap> ChildOrder; ChildOrder childOrder; for (const ChildMap::value_type& child : children_) { childOrder[child.second->myOrder_] = child.second; @@ -140,7 +140,6 @@ void TimingOutline::printCsv(bool addLineBreak) const { std::cout << self() << "," << n_ << "," << wall() << "," << secs() << "," << min() << "," << max() << ","; // Order children - typedef FastMap> ChildOrder; ChildOrder childOrder; for (const ChildMap::value_type& child : children_) { childOrder[child.second->myOrder_] = child.second;