1 #include "boost/test/unit_test.hpp" 23 fhicl::Comment{
"Duration (in seconds) for which the analyze function " 26 using Parameters = Table<Config>;
28 : SharedAnalyzer{p}, nEvents_{
p().numEvents()}, waitFor_{
p().waitFor()}
30 async<art::InEvent>();
44 while (duration_cast<seconds>(
now() -
begin).
count() < waitFor_) {
53 auto const expected_lower_limit = (waitFor_ * nEvents_) / n_schedules;
54 BOOST_TEST(time_taken >= expected_lower_limit);
57 unsigned int const nEvents_;
58 double const waitFor_;
59 using time_point_t = std::chrono::steady_clock::time_point;
def analyze(root, level, gtrees, gbranches, doprint)
typename config_impl< T >::type Config
#define DEFINE_ART_MODULE(klass)
ScheduleID::size_type nschedules() const
second seconds
Alias for common language habits.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
static Globals * instance()