diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-11 20:46:25 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-11 20:46:25 +0000 |
commit | 27dfdd0b1256ebde19cd2a0f008c6a2a2c83f2b3 (patch) | |
tree | 9c436d2b20fbb8207a7c2a2a54968c3d48cda344 /include | |
parent | 182bab0dd6186013d5b46654d9146a731140ae88 (diff) |
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6083 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/time.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/time.h b/include/asterisk/time.h index a92e1f91e..b34ff4f61 100755 --- a/include/asterisk/time.h +++ b/include/asterisk/time.h @@ -16,16 +16,16 @@ /*! * \brief Computes the difference (in milliseconds) between two \c struct \c timeval instances. - * \param start the beginning of the time period - * \param end the end of the time period + * \param end the beginning of the time period + * \param start the end of the time period * \return the difference in milliseconds */ -int ast_tvdiff_ms(const struct timeval *start, const struct timeval *end); +int ast_tvdiff_ms(const struct timeval *end, const struct timeval *start); #if !defined(LOW_MEMORY) && !defined(AST_API_MODULE) extern inline #endif #if !defined(LOW_MEMORY) || defined(AST_API_MODULE) -int ast_tvdiff_ms(const struct timeval *start, const struct timeval *end) +int ast_tvdiff_ms(const struct timeval *end, const struct timeval *start) { return ((end->tv_sec - start->tv_sec) * 1000) + ((end->tv_usec - start->tv_usec) / 1000); } |