Commit 3ae497c3 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

benchmarks/latmus: use proper clock with sem_timedwait()


Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
parent d0e46f87
......@@ -679,7 +679,7 @@ static void setup_measurement_on_gpio(void)
ret = send(lat_sock, &req, sizeof(req), 0);
if (ret != sizeof(req))
error(1, errno, "send() start");
clock_gettime(CLOCK_MONOTONIC, &timeout);
clock_gettime(CLOCK_REALTIME, &timeout);
timeout.tv_sec += LATMON_TIMEOUT_SECS;
if (sem_timedwait(&logger_done, &timeout))
latmon_hung = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment