1 #ifndef ARTDAQ_CORE_TEST_CORE_SHAREDMEMORYTESTSHIMS_HH
2 #define ARTDAQ_CORE_TEST_CORE_SHAREDMEMORYTESTSHIMS_HH
5 #include "artdaq-core/Utilities/TimeUtils.hh"
7 inline unsigned GetRandomKey(uint16_t identifier)
10 static std::uniform_int_distribution<unsigned> gen(0x00000000, 0x0000FFFF);
11 return gen(rng) + (identifier << 16) + getpid();
uint64_t gettimeofday_us()
Get the current time of day in microseconds (from gettimeofday system call)