From e16bc680f7232a6fcd50cad1e5583552bf87acb9 Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Tue, 22 Nov 2011 17:41:53 -0800 Subject: [PATCH] Add sleep call. --- perf/thread_lat.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perf/thread_lat.lua b/perf/thread_lat.lua index 93ed691..01e4451 100644 --- a/perf/thread_lat.lua +++ b/perf/thread_lat.lua @@ -64,6 +64,8 @@ local msg = zmq.zmq_msg_t.init_size(message_size) print(string.format("message size: %i [B]", message_size)) print(string.format("roundtrip count: %i", roundtrip_count)) +zmq.sleep(2) -- wait for child thread to connect. + local timer = zmq.stopwatch_start() for i = 1, roundtrip_count do