diff options
author | unknown <sustrik@.(none)> | 2009-09-08 11:30:49 +0200 |
---|---|---|
committer | unknown <sustrik@.(none)> | 2009-09-08 11:30:49 +0200 |
commit | ec6822a477b89ac77afc90425bf36c4829dbef3d (patch) | |
tree | d8708a7d56fc2a1db9a163be795bc5b84955f48c /c | |
parent | b71c3005e68d02f800ff09bcacece79d167bff75 (diff) |
win port for c and cpp perf tests
Diffstat (limited to 'c')
-rw-r--r-- | c/zmq.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -26,7 +26,7 @@ extern "C" { #include <stddef.h> -#if defined MSC_VER && defined ZMQ_BUILDING_LIBZMQ +#if defined ZMQ_BUILDING_LIBZMQ_WITH_MSVC #define ZMQ_EXPORT __declspec(dllexport) #else #define ZMQ_EXPORT @@ -199,6 +199,12 @@ ZMQ_EXPORT int zmq_flush (void *s); // ENOTSUP - function isn't supported by particular socket type. ZMQ_EXPORT int zmq_recv (void *s, struct zmq_msg_t *msg, int flags); +// Helper functions used by perf tests so that they don't have to care +// about minutiae of time-related functions on different OS platforms. +ZMQ_EXPORT void *zmq_stopwatch_start (); +ZMQ_EXPORT unsigned long zmq_stopwatch_stop (void *watch_); +ZMQ_EXPORT void zmq_sleep (int seconds_); + #ifdef __cplusplus } #endif |