X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Ftime_support.h;h=fab432d38d1c0fac843c42238ab98bbbd85aa3fd;hb=00017c90ae82d3237f5a4784caa695459c5897d2;hp=9e8e61f19df6f9fd8933e8138cdafa8fb47a9db7;hpb=2689f58f2a0afa296a29ab301a4c1665b914caab;p=openocd.git diff --git a/src/helper/time_support.h b/src/helper/time_support.h index 9e8e61f19d..fab432d38d 100644 --- a/src/helper/time_support.h +++ b/src/helper/time_support.h @@ -38,11 +38,10 @@ #endif int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y); -int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y); -int timeval_add_time(struct timeval *result, int sec, int usec); +int timeval_add_time(struct timeval *result, long sec, long usec); /// @returns gettimeofday() timeval as 64-bit in ms -long long timeval_ms(void); +int64_t timeval_ms(void); struct duration {