diff --git a/asyncdispatch2/timer.nim b/asyncdispatch2/timer.nim index ff1c4b57..6daf4ea0 100644 --- a/asyncdispatch2/timer.nim +++ b/asyncdispatch2/timer.nim @@ -30,7 +30,7 @@ elif defined(macosx): proc fastEpochTime*(): uint64 {.inline.} = var t: Timeval posix_gettimeofday(t) - result = (a.tv_sec * 1_000 + a.tv_usec div 1_000) + result = (t.tv_sec * 1_000 + t.tv_usec div 1_000) elif defined(posix):