[Ffmpeg-devel] [PATCH] drawtext.c: 02 use gettimeofday()

Rich Felker dalias
Mon Sep 11 05:29:01 CEST 2006


On Sun, Sep 10, 2006 at 02:48:43PM -0300, Gustavo Sverzut Barbieri wrote:
> On 9/10/06, M?ns Rullg?rd <mru at inprovide.com> wrote:
> >"Gustavo Sverzut Barbieri" <barbieri at gmail.com> writes:
> >
> >> This replaces time() with gettimeofday()
> >
> >Why?  You're still only using second precision.
> 
> man 2 time:
> 
> Under 4.3BSD, this call is obsoleted by gettimeofday(2).
> 
> 
> also, GNU and other systems does issue warnings on its usage

This is idiotic and wrong. time(3) is ISO C. gettimeofday(2) is posix
only. There's no reason to ever use gettimeofday unless you want the
extra precision. Flame the BSD/GNU idiots who wrote those
docs/warnings.

Rich





More information about the ffmpeg-devel mailing list