summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2018-07-28 04:15:15 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2018-07-28 04:15:15 +0000
commit01e689f3dec648dd4eec3b41919918ee1f76133b (patch)
treeb766e012f66587345604448f23303939ce829711 /ev.c
parentdacf7df30a10ef87375342a2414043bd84410dac (diff)
downloadlibev-01e689f3dec648dd4eec3b41919918ee1f76133b.tar.gz
libev-01e689f3dec648dd4eec3b41919918ee1f76133b.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 3b81376..b37de6f 100644
--- a/ev.c
+++ b/ev.c
@@ -1908,6 +1908,8 @@ ev_sleep (ev_tstamp delay) EV_THROW
EV_TS_SET (ts, delay);
nanosleep (&ts, 0);
#elif defined _WIN32
+ /* maybe this should round up, as ms is very low resolution */
+ /* compared to select (┬Ás) or nanosleep (ns) */
Sleep ((unsigned long)(delay * 1e3));
#else
struct timeval tv;