app/testpmd: add latency statistics calculation