Definition at line 75 of file main_benchmark.cxx.
◆ Timer()
◆ end()
double Timer::end |
( |
const std::string & |
text, |
|
|
const unsigned & |
n, |
|
|
const unsigned |
estimatedOverheadToDiscount = 0 |
|
) |
| |
|
inline |
Definition at line 78 of file main_benchmark.cxx.
82 double t((clock()-
m_time_clock-estimatedOverheadToDiscount)*(1./
double(CLOCKS_PER_SEC))*1.0e6/
n);
83 std::cout<<
" Timed ["<<
text<<
"]: "<<
t<<
" microsecond"<<std::endl;
◆ timeit()
Definition at line 12 of file Timer.cxx.
17 for (
int i = 0;
i != ndo; ++
i){
22 std::cout <<
i <<
'\n';
23 std::cout << duration_cast<milliseconds>(
t1-
t0).count()
◆ m_time_clock
The documentation for this struct was generated from the following files: