[MPlayer-dev-eng] [PATCH] get_time
Dan Oscarsson
Dan.Oscarsson at tieto.com
Tue Sep 14 12:59:28 CEST 2010
mån 2010-09-13 klockan 21:53 +0200 skrev Reimar Döffinger:
> On Mon, Sep 13, 2010 at 09:38:11PM +0200, Dan Oscarsson wrote:
> > 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.
>
> And what about a system where it would not be the "full 62 bits" but
> instead it would be 36 bits?
> Have fun trying to fix that up to create a value that won't wrap around
> at the most inconvenient time.
Sorry, I meant 64 bits. Probably my fingers remembered 32 and get a 2
last. What I meant was that what is wrong in having av version of
GetTimer that returns the result using 64 bits so that time does not
need to be truncated?
Dan
More information about the MPlayer-dev-eng
mailing list