/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
L1Trigger/TrackFindingTracklet/src/Timer.cc
12 строк
368 B
Louise Skinnari
clean branch for L1 tracking (tracklet) algorithm w/o data files in history
20 май 2020, 17:44
20 май 2020, 17:44
543b739
Код
Авторство
О чём код?
#include "L1Trigger/TrackFindingTracklet/interface/Timer.h" using namespace trklet; void Timer::start() { tstart_ = std::chrono::high_resolution_clock::now(); } void Timer::stop() { auto tstop = std::chrono::high_resolution_clock::now(); double tmp = std::chrono::duration<double>(tstop - tstart_).count(); ttot_ += tmp; ttotsq_ += tmp * tmp; ntimes_++; }