Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:53

0001 #include "L1Trigger/TrackFindingTracklet/interface/Timer.h"
0002 
0003 using namespace trklet;
0004 
0005 void Timer::start() { tstart_ = std::chrono::high_resolution_clock::now(); }
0006 void Timer::stop() {
0007   auto tstop = std::chrono::high_resolution_clock::now();
0008   double tmp = std::chrono::duration<double>(tstop - tstart_).count();
0009   ttot_ += tmp;
0010   ttotsq_ += tmp * tmp;
0011   ntimes_++;
0012 }