From: matz@... (Yukihiro Matsumoto) Date: 2001-03-05T14:48:21+09:00 Subject: [ruby-talk:11991] Re: higher-resolution Time for Win32 Hi, In message "[ruby-talk:11990] higher-resolution Time for Win32" on 01/03/05, Tim Thompson writes: |I want to use Ruby for realtime MIDI and audio on Windows. |To do that, I need high-resolution timing. The existing C code |in Ruby uses gettimeofday() to get the current time. |I have made a modification so that, on Windows, it uses the |timeGetTime() API to get a higher-resolution time. | |Before this change, Ruby's Time.now.tv_usec value on Windows 98 |was quantized to a large (40-50 millisecond) amount, because |of the poor implementation of gettimeofday() in Windows. Thank you for the information. The place to be modified (i.e. where poor implementation resides) is win32/win32.c. Let me contact with win32 maintainers. matz.