app/testpmd: print fractional part in CPU cycles
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Fri, 8 May 2020 22:38:26 +0000 (22:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit1920832a79ff1b1cdd567cf62390041c6b58c891
tree5970f452336a1e55580653f0ab9fd89892e40f35
parent4c0497b1dd531c3f72e8cbfab32e32350a9cbfa5
app/testpmd: print fractional part in CPU cycles

Change printing of CPU cycles/packet to include fractional part for
accurateness.

Example:

Without patch:
CPU cycles/packet=14
(total cycles=4899533541 / total RX packets=343031966)

With patch:
CPU cycles/packet=14.28
(total cycles=4899533541 / total RX packets=343031966)

Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c