ARTS
2.4.0(git:4fb77825)
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
}
Timings
Timings Class.
Definition:
timings.h:24
Timings::names
std::vector< String > names
Definition:
timings.h:110
Timings::total_time
Numeric total_time
Definition:
timings.h:107
timings.h
Timings::times
std::vector< Numeric > times
Definition:
timings.h:109
operator<<
std::ostream & operator<<(std::ostream &os, const Timings &timings)
Print timing results.
Definition:
timings.cc:18
src
timings.cc
Generated on Thu Oct 15 2020 08:53:04 for ARTS by
1.8.20