summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2019-07-11 08:22:54 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2019-07-11 08:22:54 +0000
commita8e8443a3acb4979e858702faebd985defa6fa7e (patch)
tree041ecf27ada1171ca6a34e396b5dba6665fe785f /ev.c
parented1fc7a42f75ae2134187cd6c12b3f895dc0e608 (diff)
downloadlibev-a8e8443a3acb4979e858702faebd985defa6fa7e.tar.gz
libev-a8e8443a3acb4979e858702faebd985defa6fa7e.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index bf42d6d..7d2e240 100644
--- a/ev.c
+++ b/ev.c
@@ -547,7 +547,7 @@ struct signalfd_siginfo
: 2147483647.) \
#define EV_TS_TO_MS(a) a * 1e3 + 0.9999
-#define EV_TS_FROM_US(us) us * 1e-6
+#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)
#define EV_TV_GET(tv) ((tv).tv_sec + (tv).tv_usec * 1e-6)