From 17ee0eb4399277e6d61b680451c0f20ce7ad5215 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 21 Apr 2013 19:09:29 +1000 Subject: [PATCH] Use cgtime instead of gettimeofday in fpgautils.c --- fpgautils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpgautils.c b/fpgautils.c index 9330a211..c15b3d15 100644 --- a/fpgautils.c +++ b/fpgautils.c @@ -557,7 +557,7 @@ size_t _select_write(int fd, char *buf, size_t siz, struct timeval *timeout) fd_set rfds; ssize_t wrote = 0, ret; - gettimeofday(&tv_now, NULL); + cgtime(&tv_now); timeradd(&tv_now, timeout, &tv_finish); // timeout is the maximum time to spend trying to write @@ -576,7 +576,7 @@ size_t _select_write(int fd, char *buf, size_t siz, struct timeval *timeout) else if (ret < 0) return wrote; - gettimeofday(&tv_now, NULL); + cgtime(&tv_now); } return wrote;