test/rwlock: amortize the cost of getting time
authorJoyce Kong <joyce.kong@arm.com>
Mon, 25 Mar 2019 09:14:59 +0000 (17:14 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 28 Mar 2019 10:49:36 +0000 (11:49 +0100)
commit6fef1ae4fc109807d13de4235281960b3b1dfd51
tree14f491b7c83b551dfb230c6f7f7f17f147c3d6bd
parentfe252fb695efa9deb95f2e6b7baf6f805996a5b0
test/rwlock: amortize the cost of getting time

Instead of getting timestamp per iteration, amortize its
overhead can help to get more precise benchmarking results.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_rwlock.c