[pisa-src] Re: r2137 - in trunk: Makefile.am libpisa/scheduler.c libpisa/scheduler.h libpisa/sysdep.c libpisa/sysdep.h libpisa/util.c libpisa/util.h

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 15 Mar 2010 00:51:57 +0100

On Mon, Mar 15, 2010 at 12:42:56AM +0100, Mircea Gherzan wrote:
> Diego Biurrun <diego@xxxxxxxxxx> wrote:
> > Now we're adding local clutter to work around platform shortcomings.
> > I have the nagging feeling that gettimeofday() would avoid all these
> > problems.  So why not switch back?
> 
> Because it's declared *obsolete* by POSIX.1-2008.

I know.  But it's available everywhere, very much unlike clock_gettime().
So what's the advantage of clock_gettime() in the real world?  I don't
see any...

Diego

Other related posts: