ATLAS Offline Software
Control
AthenaKernel
AthenaKernel
Chrono.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
16
#ifndef ATHENAKERNEL_CHRONO_H
17
#define ATHENAKERNEL_CHRONO_H
18
19
20
#include "GaudiKernel/IChronoSvc.h"
21
#include <string>
22
23
24
namespace
Athena
{
25
26
49
class
Chrono
50
{
51
public
:
59
Chrono
(
const
std::string&
name
, IChronoSvc*
svc
)
60
:
m_name
(
name
),
61
m_svc
(
svc
)
62
{
63
m_svc
->chronoStart (
m_name
);
64
}
65
66
70
~Chrono
()
71
{
72
m_svc
->chronoStop (
m_name
);
73
}
74
75
76
private
:
77
std::string
m_name
;
78
IChronoSvc*
m_svc
;
79
};
80
81
82
}
// namespace Athena
83
84
85
#endif // not ATHENA_KERNEL_CHRONO_H
Athena::Chrono::~Chrono
~Chrono()
Destructor.
Definition:
Chrono.h:70
Athena::Chrono::m_name
std::string m_name
Definition:
Chrono.h:77
Athena::Chrono
Exception-safe IChronoSvc caller.
Definition:
Chrono.h:50
Athena
Some weak symbol referencing magic...
Definition:
AthLegacySequence.h:21
Athena::Chrono::Chrono
Chrono(const std::string &name, IChronoSvc *svc)
Start a IChronoSvc timer.
Definition:
Chrono.h:59
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition:
AthROOTErrorHandlerSvc.cxx:10
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
Athena::Chrono::m_svc
IChronoSvc * m_svc
Definition:
Chrono.h:78
Generated on Thu Nov 7 2024 21:11:56 for ATLAS Offline Software by
1.8.18