Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:14

0001 // -*- C++ -*-
0002 //
0003 // Package:     Subsystem/Package
0004 // Class  :     TimingServiceBase
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Wed, 11 Jun 2014 15:08:00 GMT
0011 //
0012 
0013 // system include files
0014 #include <sys/resource.h>
0015 #include <sys/time.h>
0016 
0017 // user include files
0018 #include "FWCore/Utilities/interface/TimingServiceBase.h"
0019 
0020 using namespace edm;
0021 //
0022 // constants, enums and typedefs
0023 //
0024 std::chrono::steady_clock::time_point TimingServiceBase::s_jobStartTime;
0025 
0026 void TimingServiceBase::jobStarted() {
0027   if (0 == s_jobStartTime.time_since_epoch().count()) {
0028     s_jobStartTime = std::chrono::steady_clock::now();
0029   }
0030 }
0031 
0032 //
0033 // constructors and destructor
0034 //
0035 TimingServiceBase::TimingServiceBase() {}
0036 
0037 TimingServiceBase::~TimingServiceBase() {}