ARTS  2.3.1285(git:92a29ea9-dirty)
timings.cc
Go to the documentation of this file.
1 #include "timings.h"
2 #include <iostream>
3 
4 using std::endl;
5 using std::left;
6 using std::setw;
7 
9 
18 std::ostream &operator<<(std::ostream &os, const Timings &timings) {
19  os << endl << setw(40) << left << "TOTAL TIME:" << timings.total_time << endl;
20 
21  for (unsigned int i = 0; i < timings.times.size(); i++) {
22  os << setw(40) << left << timings.names[i] << timings.times[i];
23  os << endl;
24  }
25 
26  os << endl << endl;
27 
28  return os;
29 }
std::vector< String > names
Definition: timings.h:110
Numeric total_time
Definition: timings.h:107
Timings Class.
Definition: timings.h:24
std::vector< Numeric > times
Definition: timings.h:109
std::ostream & operator<<(std::ostream &os, const Timings &timings)
Print timing results.
Definition: timings.cc:18