Add timeutils functions for dealing with struct timespecs

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
- add timeutils to library
- add function to retrieve a reading as double

Signed-off-by: Michael Heimpold <mhei@heimpold.de>