[zeromq-dev] [PATCH][czmq] Update clock support on Windows

Steven McCoy steven.mccoy at miru.hk
Fri May 27 00:31:16 CEST 2011


#1 Check Windows build version as to whether Sleep(*0ms*) yields or sleeps.
#2 Use GetSystemTimeAsFileTime() instead of GetSystemtime().

I don't know if SdkDdkver.h needs to be explicitly brought in, the WINVERand
_WIN32_WINNT symbols are broken for detecting Windows Server 2003.

http://msdn.microsoft.com/en-us/library/aa383745.aspx

Noting that zclock_log isn't very useful with buffered output.  Also it uses
three expensive output calls which need to be reduced if you ever direct to
disk whilst HDDs remain popular.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110526/c0cf6b1c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-0ms-sleep-as-yield-on-Windows-2000-XP.patch
Type: text/x-patch
Size: 1660 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110526/c0cf6b1c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-GetSystemTimeAsFileTime-instead-of-GetSystemTime.patch
Type: text/x-patch
Size: 1471 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110526/c0cf6b1c/attachment-0001.bin>


More information about the zeromq-dev mailing list