zeromq/libzmq — pull request #314 by ianbarber (2012-04-17 09:14:40+00:00)
Title: Small patch to instantiate clock_t once

Taken from an XS patch by Martin Sustrik:

This patch instantiate a clock_t instance for each XS socket. Thus, it
is shared between subsequent calls to xs_recv (and xs_send). That in
turn significantly limits the number of invocations of getimeofday (or
similar) when timeouts are used and recv/send is called in a
tight loop.

Martin