mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:09:19 +02:00
* fix from r7819 extended to more platforms
git-svn-id: trunk@7828 -
This commit is contained in:
parent
11b56e2cc8
commit
c00021373a
@ -431,7 +431,7 @@ var
|
|||||||
TV: TTimeVal;
|
TV: TTimeVal;
|
||||||
begin
|
begin
|
||||||
Get_Sys_Time (@TV);
|
Get_Sys_Time (@TV);
|
||||||
GetMsCount := TV.TV_Secs * 1000 + TV.TV_Micro div 1000;
|
GetMsCount := int64 (TV.TV_Secs) * 1000 + TV.TV_Micro div 1000;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{******************************************************************************
|
{******************************************************************************
|
||||||
|
@ -151,7 +151,7 @@ end;
|
|||||||
|
|
||||||
function GetMsCount: int64;
|
function GetMsCount: int64;
|
||||||
begin
|
begin
|
||||||
GetMsCount := MemL [$40:$6c] * 55;
|
GetMsCount := int64 (MemL [$40:$6c]) * 55;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ var
|
|||||||
TV: TTimeVal;
|
TV: TTimeVal;
|
||||||
begin
|
begin
|
||||||
Get_Sys_Time (@TV);
|
Get_Sys_Time (@TV);
|
||||||
GetMsCount := TV.TV_Secs * 1000 + TV.TV_Micro div 1000;
|
GetMsCount := int64 (TV.TV_Secs) * 1000 + TV.TV_Micro div 1000;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{******************************************************************************
|
{******************************************************************************
|
||||||
|
@ -105,7 +105,7 @@ end;
|
|||||||
|
|
||||||
function GetMsCount: int64;
|
function GetMsCount: int64;
|
||||||
begin
|
begin
|
||||||
GetMsCount := Nwserv.GetCurrentTicks * 55;
|
GetMsCount := int64 (Nwserv.GetCurrentTicks) * 55;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ var
|
|||||||
tz : TimeZone;
|
tz : TimeZone;
|
||||||
begin
|
begin
|
||||||
FPGetTimeOfDay (tv, tz);
|
FPGetTimeOfDay (tv, tz);
|
||||||
GetMsCount := tv.tv_Sec * 1000 + tv.tv_uSec div 1000;
|
GetMsCount := int64 (tv.tv_Sec) * 1000 + tv.tv_uSec div 1000;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ end;
|
|||||||
|
|
||||||
function GetMsCount: int64;
|
function GetMsCount: int64;
|
||||||
begin
|
begin
|
||||||
GetMsCount := MemL [$40:$6c] * 55;
|
GetMsCount := int64 (MemL [$40:$6c]) * 55;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{******************************************************************************
|
{******************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user