[MPlayer-dev-eng] [PATCH] get_time

Dan Oscarsson Dan.Oscarsson at tieto.com
Mon Sep 13 21:38:11 CEST 2010


mån 2010-09-13 klockan 18:34 +0200 skrev Reimar Döffinger:
> On Mon, Sep 13, 2010 at 08:59:30AM +0200, Dan Oscarsson wrote:
> > or what is wrong with 64-bit time?
> 
> That some systems might not provide a 64 bit clock with microsecond
> precision.
> Also, usually you do know which clock is higher and which is lower,
> so it's not particularly obfuscated to take wrapping into consideration.
> Lastly, not all systems provide monotonous clocks (and even on those that
> do I think MPlayer does not use it), so doing this kinds of checks
> the naive way is not going to work all that well anyway.

Well, my get_time calls same system call that GetTimer does.
The only difference is that GetTimer truncates the result to 32 bits.

So why is there a GetTimer? It has the same precision as my get_time and
the same faults. The only difference is that it truncates the result to
32 bits. We could just let GetTimer return the full 62 bits instead.

  Dan



More information about the MPlayer-dev-eng mailing list