From 606c77368cccd2a277437b5de8764772295fdf89 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Fri, 4 Jun 2010 14:48:49 +0200 Subject: Move perf helper functions to perf/helpers.cpp --- perf/remote_lat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perf/remote_lat.cpp') diff --git a/perf/remote_lat.cpp b/perf/remote_lat.cpp index df18b56..1a408f1 100644 --- a/perf/remote_lat.cpp +++ b/perf/remote_lat.cpp @@ -21,6 +21,7 @@ #include #include #include +#include "helpers.h" int main (int argc, char *argv []) { @@ -70,7 +71,7 @@ int main (int argc, char *argv []) } memset (zmq_msg_data (&msg), 0, message_size); - watch = zmq_stopwatch_start (); + watch = stopwatch_start (); for (i = 0; i != roundtrip_count; i++) { rc = zmq_send (s, &msg, 0); @@ -89,7 +90,7 @@ int main (int argc, char *argv []) } } - elapsed = zmq_stopwatch_stop (watch); + elapsed = stopwatch_stop (watch); rc = zmq_msg_close (&msg); if (rc != 0) { -- cgit v1.2.3