From: Arnaud Meuret Date: 2001-03-05T18:46:28+09:00 Subject: [ruby-talk:12006] RE: higher-resolution Time for Win32 Hi, >> After this change, Ruby's Time.now.tv_usec value on Windows 98 >> has millisecond-resolution (i.e. the resolution of >> the timeGetTime() API). The prefered way for high-resolution timming on Win32 is to use QueryPerformanceCounter. It is supposedly optimally implemented with processor-specific (AMD & Intel AFAIK) features when available ( 'a la' RDTSC which returns the *processor* clock - Not documented ) or it falls back to 'software emulation' if no High-Perf hardware clock is present. You should really not go any other way to get quality results on Win32 (Available from Win95 to Win2k). And of course it does not need any additional lib since it is part of the system kernel, integrated in kernel32.lib. It uses 64 bits ints and is very well documented, but I can dig for some piece of working code if you have trouble with it. I can not myself provide code to integrate to ruby source at the moment. Take care, -- Arnaud MEURET Software Architecture mailto:ameuret@blocks4you.com