Implemented function to subtract two `struct timeval' and get the difference in a...
[collectd.git] / src / common.h
index 59984b1..fafce4a 100644 (file)
@@ -103,6 +103,9 @@ int strjoin (char *dst, size_t dst_len, char **fields, size_t fields_num, const
  */
 int escape_slashes (char *buf, int buf_len);
 
+/* FIXME: `timeval_sub_timespec' needs a description */
+int timeval_sub_timespec (struct timeval *tv0, struct timeval *tv1, struct timespec *ret);
+
 int rrd_update_file (char *host, char *file, char *values, char **ds_def,
                int ds_num);