]> git.ipfire.org Git - thirdparty/systemd.git/commit
time-util: add triple timestamp object
authorLennart Poettering <lennart@poettering.net>
Mon, 30 May 2016 20:08:21 +0000 (22:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 17:59:07 +0000 (19:59 +0200)
commitfe624c4c07026fe11f37b7517e81b3814fa868bc
tree57ba86d0184d38607c644c32a7ac189d67c14ae3
parentb2bb19bbda8f5ab3ab497165bc52a0ef952348c4
time-util: add triple timestamp object

We already have a double timestamp object that we use whenever we need both a
MONOTONIC and a REALTIME timestamp taken and stored. With this change we
also add a triple timestamp object that in addition stores a BOOTTIME
timestamp, which is useful for a few usecases.

Note that we keep dual_timestamp around, as it is useful in many cases where
triple_timestamp is not, in particular because retrieving the monotonic and
realtime timestamps is much cheaper on Linux that getting the boottime
timestamp.
src/basic/time-util.c
src/basic/time-util.h