[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/7] gnulib substrate for ns-resolution time stamps

From: Eli Zaretskii
Subject: Re: [PATCH 1/7] gnulib substrate for ns-resolution time stamps
Date: Fri, 01 Jul 2011 22:52:34 +0300

> Date: Fri, 01 Jul 2011 11:50:25 -0700
> From: Paul Eggert <address@hidden>
> CC: address@hidden
> > So all that needs to be done on Windows is scale the times in
> > nanosecond units, i.e. multiply the current values by 1000.
> Yes, that sounds right.  If Windows is currently scaling by 1000
> to get microseconds, it can simply scale by 1000*1000 to get
> nanoseconds.  This should work for both file time stamps and
> for the pselect emulation.  E.g., Windows can emulate pselect the
> same way it emulates select, except it multiplies by another 1000.

Agree about pselect, but file time stamps _are_ more fine-grained on
Windows.  So struct stat needs to be modified and stat-file.h needs to
be used, as I wrote earlier.

> >> The Windows emulation for <time.h> will need to define struct
> >> timespec, if it doesn't already.
> > 
> > Which functions require that, and why?
> Any function that uses EMACS_TIME, because EMACS_TIME is now struct
> timespec.

OK, then this should be added to nt/inc/sys/time.h.

Thanks for taking your time to explain these issues.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]