16 #undef _POSIX_C_SOURCE
27 if ( PyRun_SimpleString(
const_cast<char*
>(pyCmd.c_str())) != 0 ) {
37 std::vector<std::string>::const_iterator iter;
38 for (iter = pyCmds.begin(); iter != pyCmds.end(); ++iter) {
47 std::ostringstream oss;
48 oss <<
"from AthenaCommon.Include import include" << std::endl;
49 oss <<
"include(\"" << pyFileName <<
"\")";
56 if (pyFileName.find(
".py")!=std::string::npos)
68 m_t1(std::chrono::system_clock::
now()),
72 auto t = std::chrono::system_clock::to_time_t(
m_t1);
74 ERS_LOG(
m_descr <<
" started at time: " << std::put_time(<,
"%Y-%m-%d %H:%M:%S") );
80 auto dt_ms = std::chrono::duration_cast<std::chrono::milliseconds>(
t2 - m_t1);
81 ERS_LOG( m_descr <<
" finished. Time used [ms] = " << dt_ms.count() );