ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <stdexcept>
7#include <string_view>
8
9namespace 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
Generic monitoring tool for athena components.
void checkNamingConvention(std::string_view name)