summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorunknown <sustrik@.(none)>2009-09-08 11:30:49 +0200
committerunknown <sustrik@.(none)>2009-09-08 11:30:49 +0200
commitec6822a477b89ac77afc90425bf36c4829dbef3d (patch)
treed8708a7d56fc2a1db9a163be795bc5b84955f48c /c
parentb71c3005e68d02f800ff09bcacece79d167bff75 (diff)
win port for c and cpp perf tests
Diffstat (limited to 'c')
-rw-r--r--c/zmq.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/c/zmq.h b/c/zmq.h
index a8394ed..cc165d1 100644
--- a/c/zmq.h
+++ b/c/zmq.h
@@ -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