]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/rados: use the monotonic clock in rados bench
authorMohamad Gebai <mgebai@suse.com>
Mon, 30 Oct 2017 09:58:11 +0000 (05:58 -0400)
committerMohamad Gebai <mgebai@suse.com>
Mon, 30 Oct 2017 09:58:11 +0000 (05:58 -0400)
commit86dad04a24af8ab90603433489653fcb42c07f3f
treea978a274e6da5cc875c2e4cf7719fbee24146980
parent45abc927ce8b3c22b7f16fb1b38d9f702d99a97e
tools/rados: use the monotonic clock in rados bench

Use the steady (CLOCK_MONOTONIC) clock in the bencher. The clock is used
to measure the passage of time between events, making the monotonic clock
more suited. The system clock is affected by all changes to the system's wall
clock time, which makes it unfit to compare events times relatively to each
other.

Fixes http://tracker.ceph.com/issues/21375

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/common/obj_bencher.cc
src/common/obj_bencher.h