util: add a timespec helper
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 29 Jul 2019 09:54:04 +0000 (12:54 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 29 Jul 2019 13:11:36 +0000 (13:11 +0000)
commitd2d70c3bb579f8a8e0b7431eff164e85ca7bc4ab
tree428f40ae148a26c3124c00f80ba70750354c55dd
parentef57fb235016a168b0f2260783c44c7f4ebea32d
util: add a timespec helper

Copied from Weston, upon Daniel's suggestion

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Suggested-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/util/Makefile.sources
src/util/meson.build
src/util/tests/timespec/meson.build [new file with mode: 0644]
src/util/tests/timespec/timespec_test.cpp [new file with mode: 0644]
src/util/timespec.h [new file with mode: 0644]