src/daemon/utils_time.h: Improve precision of conversion macros.
authorFlorian Forster <octo@collectd.org>
Wed, 19 Aug 2015 12:26:24 +0000 (14:26 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 19 Aug 2015 12:26:24 +0000 (14:26 +0200)
commitdb1391aaa66b8b8fad82219494f61f3452441f62
tree89be36856641b3560ede165c722c3dc994ea9c6d
parentaab7074831a2f67d9c7df8c72dd054f6cd7ddc27
src/daemon/utils_time.h: Improve precision of conversion macros.

This patch also adds test cases for most conversions. It is inspired by
collectd/go-collectd#5 and uses some of the same test cases.
src/daemon/Makefile.am
src/daemon/utils_time.h
src/daemon/utils_time_test.c [new file with mode: 0644]
src/testing.h