[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.
[PATCH 2/7] etc/NEWS patch for ns-resolution time stamps, Paul Eggert, 2011/07/01
[PATCH 3/7] Doc patches for ns-resolution time stamps, Paul Eggert, 2011/07/01
[PATCH 4/7] configure-time support for ns-resolution time stamps, Paul Eggert, 2011/07/01
[PATCH 5/7] C-level support for ns-resolution time stamps, Paul Eggert, 2011/07/01
[PATCH 6/7] lib-src support for ns-resolution time stamps, Paul Eggert, 2011/07/01
[PATCH 7/7] Lisp-level support for ns-resolution time stamps, Paul Eggert, 2011/07/01
Re: nanosecond-resolution time stamps, Stefan Monnier, 2011/07/01