gettime: Introduce rel_time_since()
authorBart Van Assche <bvanassche@acm.org>
Fri, 4 Sep 2020 23:18:53 +0000 (16:18 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sun, 20 Sep 2020 23:09:45 +0000 (16:09 -0700)
commit383c796046c2263b89d8115f1fa696ce3e7d5adc
treef37a11a24b4cacc6102283e773bcd02509698eb9
parent440f88dad1edf9646856bf8ac1c1999a2d0aecc0
gettime: Introduce rel_time_since()

rel_time_since() subtracts two timespecs and returns the result as a
signed integer. Instead of using the implementation from mtime_since(),
use an implementation that only performs one division instead of two.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
fio_time.h
gettime.c