X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/fed3bacaa7e5da92ab4cf44995b5a2bc26a81faa..eca2c8e0a8aad79c7dc7738346d265f973428995:/lcoreselect.pas diff --git a/lcoreselect.pas b/lcoreselect.pas index f613f67..a20a55b 100644 --- a/lcoreselect.pas +++ b/lcoreselect.pas @@ -69,7 +69,7 @@ var temptimer : tltimer ; begin - gettimeofday(tvnow); + gettimemonotonic(tvnow); currenttimer := firsttimer; while assigned(currenttimer) do begin //writeln(currenttimer.enabled); @@ -249,7 +249,7 @@ begin fd_zero(FDSW); if result=-1 then begin if linuxerror = SYS_EINTR then begin - // we received a signal it's not a problem + // we received a signal it is not a problem end else begin raise esocketexception.create('select returned error '+inttostr(linuxerror)); end; @@ -309,7 +309,7 @@ begin selectresult := doselect(nil); end else begin - gettimeofday(tvnow); + gettimemonotonic(tvnow); tv_subtract(tv,tvnow); //writeln('timers active');