21 auto delay = std::chrono::seconds(ic.options().get<
int>(
"delay"));
22 auto messageSize = ic.options().get<
int>(
"size");
25 auto tStart = std::chrono::high_resolution_clock::now();
26 auto tEnd = std::chrono::high_resolution_clock::now();
27 auto&
msg = ctx.outputs().make<
char>(
OutputRef{what}, messageSize);
28 while (std::chrono::duration_cast<std::chrono::seconds>(tEnd - tStart) < std::chrono::seconds(delay)) {
29 for (
size_t i = 0;
i < messageSize; ++
i) {
32 tEnd = std::chrono::high_resolution_clock::now();