libfuncs is collection of code (list, queue, circular buffer, io, logging, etc.). https://georgi.unixsol.org/programs/libfuncs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

misc.h 444B

12345678910111213
  1. #ifndef MISC_H
  2. #define MISC_H
  3. #include <sys/time.h>
  4. int xstrcmp(char *a, char *b);
  5. unsigned long long timediff_nsec(struct timespec *start_ts, struct timespec *end_ts);
  6. unsigned long long timeval_diff_usec(struct timeval *start_ts, struct timeval *end_ts);
  7. unsigned long long timeval_diff_msec(struct timeval *start_ts, struct timeval *end_ts);
  8. unsigned long long timeval_diff_sec (struct timeval *start_ts, struct timeval *end_ts);
  9. #endif