1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
/*
* Misc functions header file
* Copyright (C) 2010 Unix Solutions Ltd.
*
* Released under MIT license.
* See LICENSE-MIT.txt for license terms.
*/
#ifndef MISC_H
#define MISC_H
#include <sys/time.h>
int xstrcmp(char *a, char *b);
unsigned long long timediff_nsec(struct timespec *start_ts, struct timespec *end_ts);
unsigned long long timeval_diff_usec(struct timeval *start_ts, struct timeval *end_ts);
unsigned long long timeval_diff_msec(struct timeval *start_ts, struct timeval *end_ts);
unsigned long long timeval_diff_sec (struct timeval *start_ts, struct timeval *end_ts);
#endif
|