1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// -*- C++ -*-
//
// Package: FWCore/AbstractServices
// Class : TimingServiceBase
//
// Implementation:
// [Notes on implementation]
//
// Original Author: Chris Jones
// Created: Wed, 11 Jun 2014 15:08:00 GMT
//
// system include files
#include <sys/resource.h>
#include <sys/time.h>
// user include files
#include "FWCore/AbstractServices/interface/TimingServiceBase.h"
using namespace edm;
//
// constants, enums and typedefs
//
std::chrono::steady_clock::time_point TimingServiceBase::s_jobStartTime;
void TimingServiceBase::jobStarted() {
if (0 == s_jobStartTime.time_since_epoch().count()) {
s_jobStartTime = std::chrono::steady_clock::now();
}
}
//
// constructors and destructor
//
TimingServiceBase::TimingServiceBase() = default;
TimingServiceBase::~TimingServiceBase() = default;
|