unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH 1/7] gnulib substrate for ns-resolution time stamps
Date: Fri, 01 Jul 2011 22:52:34 +0300	[thread overview]
Message-ID: <83k4c1rd6l.fsf@gnu.org> (raw)
In-Reply-To: <4E0E16F1.1010301@cs.ucla.edu>

> Date: Fri, 01 Jul 2011 11:50:25 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
> 
> > 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	other threads:[~2011-07-01 19:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01  6:59 nanosecond-resolution time stamps Paul Eggert
2011-07-01  8:14 ` [PATCH 1/7] gnulib substrate for ns-resolution " Paul Eggert
2011-07-01 11:20   ` Eli Zaretskii
2011-07-01 14:13     ` Eli Zaretskii
2011-07-01 16:27     ` Paul Eggert
2011-07-01 17:39       ` Eli Zaretskii
2011-07-01 18:50       ` Paul Eggert
2011-07-01 19:52         ` Eli Zaretskii [this message]
2011-07-01  8:14 ` [PATCH 2/7] etc/NEWS patch " Paul Eggert
2011-07-01  8:15 ` [PATCH 3/7] Doc patches " Paul Eggert
2011-07-01  8:15 ` [PATCH 4/7] configure-time support " Paul Eggert
2011-07-01  8:15 ` [PATCH 5/7] C-level " Paul Eggert
2011-07-01  8:16 ` [PATCH 6/7] lib-src " Paul Eggert
2011-07-01  8:16 ` [PATCH 7/7] Lisp-level " Paul Eggert
2011-07-01 15:55 ` nanosecond-resolution " Stefan Monnier
2011-07-01 17:15   ` Paul Eggert
2011-07-04 15:04     ` Stefan Monnier
2011-07-05  7:13       ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83k4c1rd6l.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).