ATLAS Offline Software
Loading...
Searching...
No Matches
Timer Struct Reference
Collaboration diagram for Timer:

Public Member Functions

void timeit ()

Detailed Description

Definition at line 10 of file Timer.cxx.

Member Function Documentation

◆ timeit()

void Timer::timeit ( )
inline

Definition at line 12 of file Timer.cxx.

12 {
13
14 auto t0 = high_resolution_clock::now();
15 int ndo = 1000000;
16 int i{0};
17 for (int i = 0; i != ndo; ++i){
18 i += 1;
19 i -= 1;
20 }
21 auto t1 = high_resolution_clock::now();
22 std::cout << i << '\n';
23 std::cout << duration_cast<milliseconds>(t1-t0).count()
24 <<"ms\n";
25 }
static Double_t t0
std::vector< ALFA_RawDataCollection_p1 > t1

The documentation for this struct was generated from the following file: