summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_timestamp_common.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-03-30 18:22:16 +0000
committerBenny Prijono <bennylp@teluu.com>2009-03-30 18:22:16 +0000
commit378a3053c310be717ced22e5db9afb6340e259de (patch)
tree7763b1d519627e8317ac45a6dda2a572d8f3aec4 /pjlib/src/pj/os_timestamp_common.c
parent7411958cba930fb3c25bdcc07b8fe4de13103a2b (diff)
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
Diffstat (limited to 'pjlib/src/pj/os_timestamp_common.c')
-rw-r--r--pjlib/src/pj/os_timestamp_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pjlib/src/pj/os_timestamp_common.c b/pjlib/src/pj/os_timestamp_common.c
index 3384baf7..293f6162 100644
--- a/pjlib/src/pj/os_timestamp_common.c
+++ b/pjlib/src/pj/os_timestamp_common.c
@@ -152,6 +152,12 @@ PJ_DEF(pj_uint32_t) pj_elapsed_msec( const pj_timestamp *start,
return (pj_uint32_t)elapsed_msec(start, stop);
}
+PJ_DEF(pj_uint64_t) pj_elapsed_msec64(const pj_timestamp *start,
+ const pj_timestamp *stop )
+{
+ return (pj_uint64_t)elapsed_msec(start, stop);
+}
+
PJ_DEF(pj_time_val) pj_elapsed_time( const pj_timestamp *start,
const pj_timestamp *stop )
{