From: hal9000@... Date: 2000-07-24T16:44:19+00:00 Subject: [ruby-talk:04193] RE: How-to time short intervals? > Ok, so we can't hope for anything better than secs/millisecs without going > platform-specific then. Point taken on relying on anything less than secs. > However I'm not relying on them for any critical func; I'm writing some > performance tests. Robert, Maybe there's some reason you don't want to do this, but my suggestion would be to put the part you're timing in a huge loop. (Of course, that introduces a slight inaccuracy because of the loop processing overhead.) For example, run your code 100,000 times and divide the runtime by 100,000. Just a thought. Hal -- Hal Fulton Sent via Deja.com http://www.deja.com/ Before you buy.