summaryrefslogtreecommitdiff
path: root/perf/c/remote_lat.c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-30 15:47:39 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-30 15:47:39 +0200
commit314deb61851a0ddc37228d24e9f4eb106461370a (patch)
tree8039b447b2bc3a48937a2adf69a78aee4ffe2ece /perf/c/remote_lat.c
parent6c36673949b2256158e8914119d218dce311c585 (diff)
build system for perf/C and perf/C++
Diffstat (limited to 'perf/c/remote_lat.c')
-rw-r--r--perf/c/remote_lat.c7
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);