replace internal uses of gettimeofday with monotonic time where appropriate. make...
[lcore.git] / lcore.pas
index 109f4d73b724894369bf19590b60573caba162f0..f47bdabff64d482bb8ff4aa62001ad6034938b39 100644 (file)
--- a/lcore.pas
+++ b/lcore.pas
@@ -669,7 +669,7 @@ end;
 {$ifndef mswindows}\r
   procedure tltimer.resettimes;\r
   begin\r
 {$ifndef mswindows}\r
   procedure tltimer.resettimes;\r
   begin\r
-    gettimeofday(nextts);\r
+    gettimemonotonic(nextts);\r
     {if not initialevent then} tv_add(nextts,interval);\r
   end;\r
 {$endif}\r
     {if not initialevent then} tv_add(nextts,interval);\r
   end;\r
 {$endif}\r