diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-30 15:47:39 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-30 15:47:39 +0200 |
commit | 314deb61851a0ddc37228d24e9f4eb106461370a (patch) | |
tree | 8039b447b2bc3a48937a2adf69a78aee4ffe2ece /perf/c/remote_lat.c | |
parent | 6c36673949b2256158e8914119d218dce311c585 (diff) |
build system for perf/C and perf/C++
Diffstat (limited to 'perf/c/remote_lat.c')
-rw-r--r-- | perf/c/remote_lat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perf/c/remote_lat.c b/perf/c/remote_lat.c index 025c57d..e99da2e 100644 --- a/perf/c/remote_lat.c +++ b/perf/c/remote_lat.c @@ -32,7 +32,9 @@ int main (int argc, char *argv []) void *s; int rc; int i; - zmq_msg_t msg; + struct zmq_msg_t msg; + struct timeval start; + struct timeval end; double elapsed; double latency; @@ -54,7 +56,6 @@ int main (int argc, char *argv []) rc = zmq_connect (s, connect_to); assert (rc == 0); - timeval start; rc = gettimeofday (&start, NULL); assert (rc == 0); @@ -70,8 +71,6 @@ int main (int argc, char *argv []) assert (rc == 0); } - - timeval end; rc = gettimeofday (&end, NULL); assert (rc == 0); |