unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12802: 23.4; feature wish: file-attributes in microsecond precision
@ 2012-11-04 22:18 Hendrik Tews
  2012-11-05  2:59 ` Glenn Morris
  2012-11-05  3:40 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Hendrik Tews @ 2012-11-04 22:18 UTC (permalink / raw)
  To: 12802

Hi,

please make file access/modification/status change times
available in microsecond precision on those systems that support
that. 

Motivation: I am maintaining an extension of Proof General that
compiles Coq source files to Coq object files on the fly when
needed. For that I have to compare file modification times in a
way similar to make. I would really like to do this with a
precision better than 1 second.

Thanks in advance,

Hendrik Tews





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12802: 23.4; feature wish: file-attributes in microsecond precision
  2012-11-04 22:18 bug#12802: 23.4; feature wish: file-attributes in microsecond precision Hendrik Tews
@ 2012-11-05  2:59 ` Glenn Morris
  2012-11-05  3:40 ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2012-11-05  2:59 UTC (permalink / raw)
  To: 12802-done

Version: 24.3

Hendrik Tews wrote:

> please make file access/modification/status change times
> available in microsecond precision on those systems that support
> that. 

I believe this is already (more than) implemented and should appear in
24.3. From the NEWS file:

     *** `current-time' now returns extended-format time stamps (HIGH
     LOW USEC PSEC), where the new PSEC slot specifies picoseconds. PSEC
     is typically a multiple of 1000 on current machines. Other
     functions that use this format, such as file-attributes and
     format-time-string, have been changed accordingly.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12802: 23.4; feature wish: file-attributes in microsecond precision
  2012-11-04 22:18 bug#12802: 23.4; feature wish: file-attributes in microsecond precision Hendrik Tews
  2012-11-05  2:59 ` Glenn Morris
@ 2012-11-05  3:40 ` Stefan Monnier
  2012-11-05 16:02   ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2012-11-05  3:40 UTC (permalink / raw)
  To: Hendrik Tews; +Cc: 12802

> please make file access/modification/status change times available in
> microsecond precision on those systems that support that. 

Your wish has been granted.

> Motivation: I am maintaining an extension of Proof General that
> compiles Coq source files to Coq object files on the fly when
> needed. For that I have to compare file modification times in a
> way similar to make.

AFAIK `make' does not require such fine-precision.   Basically if the
time-stamp on the generated file is equal to the source, then it's
considered as new enough (IOW in the absence of a proof that the
generated file is older, it is assumed to be newer).


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12802: 23.4; feature wish: file-attributes in microsecond precision
  2012-11-05  3:40 ` Stefan Monnier
@ 2012-11-05 16:02   ` Eli Zaretskii
  2012-11-05 23:43     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-11-05 16:02 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: hendrik, 12802

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Date: Sun, 04 Nov 2012 22:40:52 -0500
> Cc: 12802@debbugs.gnu.org
> 
> > Motivation: I am maintaining an extension of Proof General that
> > compiles Coq source files to Coq object files on the fly when
> > needed. For that I have to compare file modification times in a
> > way similar to make.
> 
> AFAIK `make' does not require such fine-precision.

GNU Make supports nanosecond time resolution when the underlying
library provides that.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12802: 23.4; feature wish: file-attributes in microsecond precision
  2012-11-05 16:02   ` Eli Zaretskii
@ 2012-11-05 23:43     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2012-11-05 23:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: hendrik, 12802

>> AFAIK `make' does not require such fine-precision.
> GNU Make supports nanosecond time resolution when the underlying
> library provides that.

Yes, it supports it when it's available (which doesn't just depend
on the library but also the filesystem).  But that still a far cry from
requiring it ;-)


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-05 23:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 22:18 bug#12802: 23.4; feature wish: file-attributes in microsecond precision Hendrik Tews
2012-11-05  2:59 ` Glenn Morris
2012-11-05  3:40 ` Stefan Monnier
2012-11-05 16:02   ` Eli Zaretskii
2012-11-05 23:43     ` Stefan Monnier

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).