chiark / gitweb /
time-util: introduce usec_sub()
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 4 Feb 2016 18:02:39 +0000 (00:02 +0600)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:16 +0000 (15:22 +0200)
commitc549c705f8856bec29760614bd507e53c2e2a97f
tree64680552990fed7fa3593e0298b677af5c9e684a
parenteca14e5e08060323f5aace8c44f13e611ac9246d
time-util: introduce usec_sub()

The dual_timestamp_from_realtime(), dual_timestamp_from_monotonic()
and dual_timestamp_from_boottime_or_monotonic() shares the same
code for comparison given ts with delta. Let's move it to the
separate inline function to prevent code duplication.
src/basic/time-util.c