X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Ftime_support.h;h=a2d180a5aac65ad56919d59810da37fc05b3f9ca;hb=465a06dfdc6c5d4af377dac7b9d71845cb0dc034;hp=9e8e61f19df6f9fd8933e8138cdafa8fb47a9db7;hpb=2689f58f2a0afa296a29ab301a4c1665b914caab;p=openocd.git diff --git a/src/helper/time_support.h b/src/helper/time_support.h index 9e8e61f19d..a2d180a5aa 100644 --- a/src/helper/time_support.h +++ b/src/helper/time_support.h @@ -39,10 +39,10 @@ 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 {