From 378a3053c310be717ced22e5db9afb6340e259de Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 30 Mar 2009 18:22:16 +0000 Subject: Ticket #764: Bug with milliseconds time resolution in WinCE/Windows Mobile targets (thanks Johan Lantz for the report) - use QueryPerformanceCounter() (via pj_get_timestamp() API) to emulate the msec precision) - more strict tests in pjlib-test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2560 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/os.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pjlib/include/pj') diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h index 4a5a77f8..38eb8ea6 100644 --- a/pjlib/include/pj/os.h +++ b/pjlib/include/pj/os.h @@ -1267,6 +1267,12 @@ PJ_DECL(pj_time_val) pj_elapsed_time( const pj_timestamp *start, PJ_DECL(pj_uint32_t) pj_elapsed_msec( const pj_timestamp *start, const pj_timestamp *stop ); +/** + * Variant of #pj_elapsed_msec() which returns 64bit value. + */ +PJ_DECL(pj_uint64_t) pj_elapsed_msec64(const pj_timestamp *start, + const pj_timestamp *stop ); + /** * Calculate the elapsed time in 32-bit microseconds. * This function calculates the elapsed time using highest precision -- cgit v1.2.3