[MPlayer-dev-eng] [PATCH] get_time
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Sep 15 19:24:15 CEST 2010
On Sun, Sep 12, 2010 at 01:58:24PM +0200, Dan Oscarsson wrote:
> --- osdep/timer-win2.c.org 2010-09-10 14:26:20.011294728 +0200
> +++ osdep/timer-win2.c 2010-09-10 14:26:38.782419722 +0200
> @@ -24,6 +24,12 @@
>
> const char timer_name[] = "Windows native";
>
> +// Returns current time in microseconds in 64 bit quantity so it does not wrap
> +uint64_t get_time(void)
> +{
> + return timeGetTime() * 1000;
> +}
> +
Ok, since all my attempts to explain the problem in an abstract form
obviously didn't work let me be specific:
This will wrap around within 50 days.
How will your new code that relies on this new get_time function
handle that?
More information about the MPlayer-dev-eng
mailing list