I noticed the libev time resolution on Win32 was only 1ms. Microsoft is of course too horrible to fix this properly, so nasty hacks have been developed. I ported the one used by Time::HiRes and it appears to work fine. I don't expect this patch is good enough, but want to at least start some discussion on the topic.

Two problems with this patch:

Not thread-safe. Time::HiRes uses Perl context to handle this, but I wasn't sure of the best way to do it in libev. The fact that time can move backwards is a bit worrying. Although Time::HiRes gets away with it!

Attachment: win32_hires_time.patch
Description: Binary data




-Andy
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to