TestTimeTrackerAnalyzer_module.cc
Go to the documentation of this file.
1 //--------------------------------------------------------------------
2 //
3 // Empty module just to test timeTracker stuff
4 //
5 //--------------------------------------------------------------------
6 
10 #include "fhiclcpp/ParameterSet.h"
11 
12 #include <thread>
13 
14 namespace arttest {
15 
17  public:
19  : art::EDAnalyzer(pset)
20  {}
21 
22  void
23  analyze(art::Event const&) override
24  {
25  using namespace std::literals;
26  std::this_thread::sleep_for(10ms * scheduleID().id());
27  }
28  }; // TestTimeTrackerAnalyzer
29 
30 } // namespace arttest
31 
void analyze(art::Event const &) override
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
ScheduleID scheduleID() const noexcept
Definition: LegacyModule.cc:12
static const double ms
Definition: Units.h:100
TestTimeTrackerAnalyzer(fhicl::ParameterSet const &pset)