diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-06-04 14:48:49 +0200 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-06-04 14:48:49 +0200 |
commit | 606c77368cccd2a277437b5de8764772295fdf89 (patch) | |
tree | 93d3a40130b80af1bd04c38973a7d8398e2e7021 /perf/remote_lat.cpp | |
parent | 05b4a7ae787760d5c24e048612b786fa0283854a (diff) |
Move perf helper functions to perf/helpers.cpp
Diffstat (limited to 'perf/remote_lat.cpp')
-rw-r--r-- | perf/remote_lat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> +#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) { |