[MPlayer-dev-eng] [PATCH] get_time

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Sep 12 19:23:02 CEST 2010


sön 2010-09-12 klockan 16:09 +0200 skrev Reimar Döffinger:
> On Sun, Sep 12, 2010 at 01:58:24PM +0200, Dan Oscarsson wrote:
> > This patch just adds a get_time call that returns time in 64-bit 
> > quantities so that time do not wrap.
> 
> Why would you need this?
> Do you really need to compare time values with microsecond accuracy
> that are more than 1 hour apart?
> If not you don't need it.

A test like time1 < time2 can fail if one of the values have wrapped
around. It does not matter if it wraps in 1 hour or in 20 seconds, as we
do not start from zero it may wrap at any time.

   Dan



More information about the MPlayer-dev-eng mailing list