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
|
// -*- C++ -*-
//
// Package: FWCore/AbstractServices
// Class : TimingServiceBase
//
// Implementation:
// [Notes on implementation]
//
// Original Author: Chris Jones
// Created: Wed, 11 Jun 2014 15:08:00 GMT
//
#include "FWCore/AbstractServices/interface/TimingServiceBase.h"
using namespace edm;
void TimingServiceBase::jobStarted() {
//make sure the value has been initialized
(void)jobStartTime();
}
std::chrono::steady_clock::time_point TimingServiceBase::jobStartTime() {
static const std::chrono::steady_clock::time_point s_jobStartTime = std::chrono::steady_clock::now();
return s_jobStartTime;
}
//
// constructors and destructor
//
TimingServiceBase::TimingServiceBase() = default;
TimingServiceBase::~TimingServiceBase() = default;
|