[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] ortp gettimeofday port for wince

From: nikita
Subject: [Linphone-developers] ortp gettimeofday port for wince
Date: Tue, 04 Jan 2011 15:44:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101208 Lightning/1.0b3pre Thunderbird/3.1.7


I have an application running under wince that use oRTP and I think that
I have found a little bug on that platform.

In port.c, for wince, the function gettimeofday is implemented using
GetTickCount() which returns the number of milliseconds since the device
booted (cf : );
and because of that we will have an incorrect implementation of

I propose to use the same gettimeofday code than for WIN32 and just
replace GetSystemTimeAsFileTime by GetCurrentFT

I have tested it in my application and it's working but I don't know if
there are some serious performance or precision drawbacks which will make it

By the way, rtcp ntp_msw (at least) is incorrect in wince if it's not fixed.


-- Nikita Kozlov

Attachment: wince_gettimeofday.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]