From: "Brian F. Feldman" Date: 2001-10-11T00:07:41+09:00 Subject: [ruby-talk:22391] Re: Do we about sub-second [amc]time on files? matz@ruby-lang.org (Yukihiro Matsumoto) wrote: > Hi, > > Finally I looked through your patches. > > In message "[ruby-talk:20680] Re: Do we about sub-second [amc]time on files?" > on 01/09/02, "Brian F. Feldman" writes: > > |http://green.bikeshed.org/~green/ruby-mods/patch-file.c > > It's not portable. For example, st_mtimensec or st_mtimespec is > not available on Linux. That can always be conditionalized, but... > |http://green.bikeshed.org/~green/ruby-mods/patch-time.c > > It does not use nano second information at all (except for nsec > method), just multiply and divide by 1000. I don't think it's useful > (yet). Maybe use of nanosleep etc. might make change in the future. It had been the reason I had tried it; I just wanted the accurate stat() information. As such, I didn't try to convert the rest of Ruby at the time to support actual nanosecond-level time granularity except for as part of Time itself. If you give me the go-ahead, I'll spend some free time and make timespec consistently used throughout the interpreter. I didn't want to do the work for that, though, until I would know that it would be used (^_^) -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------'