ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthenaMonitoringKernel
src
MonitoredTimer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaMonitoringKernel/MonitoredTimer.h
"
6
#include <stdexcept>
7
#include <string_view>
8
9
namespace
Monitored
{
10
void
checkNamingConvention
( std::string_view name ) {
11
// Enforce some naming convention for timers
12
if
( name.substr(0,5) !=
"TIME_"
) {
13
std::string
error
(
"Name of Timer \""
);
14
error
+= name;
15
error
+=
"\" needs to start with \"TIME_\""
;
16
throw
std::runtime_error(
error
);
17
}
18
}
19
20
}
// namespace Monitored
MonitoredTimer.h
Monitored
Generic monitoring tool for athena components.
Definition
GenericMonitoringTool.h:28
Monitored::checkNamingConvention
void checkNamingConvention(std::string_view name)
Definition
MonitoredTimer.cxx:10
error
Definition
IImpactPoint3dEstimator.h:70
Generated on
for ATLAS Offline Software by
1.14.0