summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2019-07-11 08:29:08 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2019-07-11 08:29:08 +0000
commit2114cc0f410234e454e48fdbf7bb9d13e7d7888e (patch)
tree642d18b492a0e89d879630b262916072bb49c8a8 /ev.c
parenta8e8443a3acb4979e858702faebd985defa6fa7e (diff)
downloadlibev-2114cc0f410234e454e48fdbf7bb9d13e7d7888e.tar.gz
libev-2114cc0f410234e454e48fdbf7bb9d13e7d7888e.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 7d2e240..0095f5c 100644
--- a/ev.c
+++ b/ev.c
@@ -546,7 +546,7 @@ struct signalfd_siginfo
: 0 < (time_t)4294967295 ? 4294967295. \
: 2147483647.) \
-#define EV_TS_TO_MS(a) a * 1e3 + 0.9999
+#define EV_TS_TO_MSEC(a) a * 1e3 + 0.9999
#define EV_TS_FROM_USEC(us) us * 1e-6
#define EV_TV_SET(tv,t) do { tv.tv_sec = (long)t; tv.tv_usec = (long)((t - tv.tv_sec) * 1e6); } while (0)
#define EV_TS_SET(ts,t) do { ts.tv_sec = (long)t; ts.tv_nsec = (long)((t - ts.tv_sec) * 1e9); } while (0)
@@ -2045,7 +2045,7 @@ ev_sleep (ev_tstamp delay) EV_NOEXCEPT
#elif defined _WIN32
/* maybe this should round up, as ms is very low resolution */
/* compared to select (┬Ás) or nanosleep (ns) */
- Sleep ((unsigned long)(EV_TS_TO_MS (delay)));
+ Sleep ((unsigned long)(EV_TS_TO_MSEC (delay)));
#else
struct timeval tv;