From: matz@... (Yukihiro Matsumoto) Date: 2000-08-16T01:55:37+09:00 Subject: [ruby-dev:10645] Re: win32 times まつもと ゆきひろです In message "[ruby-dev:10643] Re: win32 times" on 00/08/15, Katsuyuki Komatsu writes: |In the message of [ruby-dev:10642] Re: win32 times | on 2000/8/15 "Nobuyoshi.Nakada" wrote: |> VC は持ってないけど Win95/98 で試したいという人はどうぞ。 | |ああ、だめだ。time.cのtime_s_times()は、 | #ifndef HZ | #define HZ 60 /* Universal constant :-) */ | #endif /* HZ */ |として、 | rb_float_new((double)buf.tms_utime / HZ) |とかしてますけど、mswin32の場合、clock()はCLOCKS_PER_SEC単位 |つまり1000です。HZは定義されていません。 それでいきましょう。