mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +02:00
DBG: Fix GetTickCound on unix
git-svn-id: trunk@28496 -
This commit is contained in:
parent
07c762d4a0
commit
659adf9c29
@ -90,7 +90,14 @@ uses
|
||||
Unix,BaseUnix,
|
||||
{$ENDIF}
|
||||
SysUtils;
|
||||
|
||||
|
||||
{$IFnDEF MSWindows}
|
||||
function GetTickCount: DWORD;
|
||||
begin
|
||||
Result := round(Now*86400000) mod (High(DWord) + 1);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: WaitForHandles
|
||||
Params: AHandles: A set of handles to wait for (max 32)
|
||||
|
@ -1236,6 +1236,13 @@ begin
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
// None windows
|
||||
{$IFnDEF MSWindows}
|
||||
function GetTickCount: DWORD;
|
||||
begin
|
||||
Result := round(Now*86400000) mod (High(DWord) + 1);
|
||||
end;
|
||||
{$ENDIF}
|
||||
{ =========================================================================== }
|
||||
{ Helpers }
|
||||
{ =========================================================================== }
|
||||
|
Loading…
Reference in New Issue
Block a user