bogdanPricope replied on github web page: example/generator/odp_generator.c line 23 @@ -786,8 +787,14 @@ static void print_global_stats(int num_workers) } cur = odp_time_local(); - if (odp_time_cmp(next, cur) > 0) + if (odp_time_cmp(next, cur) > 0) { + left = odp_time_diff(next, cur); + stall = odp_time_to_ns(left); + stall = (stall / ODP_TIME_SEC_IN_NS) + 1; + stall &= 0xFFFFFFFF;
Comment: Also, I put 1 s interval as it is long enough to not cycle too mush and short enough to not affect significantly application termination on after configured number of sent packets (-n option). https://github.com/Linaro/odp/pull/157#discussion_r136563922 updated_at 2017-09-04 07:27:11