ATLAS Offline Software
Public Member Functions | List of all members
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 
15  int ndo = 1000000;
16  int i{0};
17  for (int i = 0; i != ndo; ++i){
18  i += 1;
19  i -= 1;
20  }
22  std::cout << i << '\n';
23  std::cout << duration_cast<milliseconds>(t1-t0).count()
24  <<"ms\n";
25  }

The documentation for this struct was generated from the following file:
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
python.handimod.now
now
Definition: handimod.py:675
lumiFormat.i
int i
Definition: lumiFormat.py:85