mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 20:28:49 +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;
|
||||
begin
|
||||
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;
|
||||
|
||||
{******************************************************************************
|
||||
|
@ -151,7 +151,7 @@ end;
|
||||
|
||||
function GetMsCount: int64;
|
||||
begin
|
||||
GetMsCount := MemL [$40:$6c] * 55;
|
||||
GetMsCount := int64 (MemL [$40:$6c]) * 55;
|
||||
end;
|
||||
|
||||
|
||||
|
@ -431,7 +431,7 @@ var
|
||||
TV: TTimeVal;
|
||||
begin
|
||||
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;
|
||||
|
||||
{******************************************************************************
|
||||
|
@ -105,7 +105,7 @@ end;
|
||||
|
||||
function GetMsCount: int64;
|
||||
begin
|
||||
GetMsCount := Nwserv.GetCurrentTicks * 55;
|
||||
GetMsCount := int64 (Nwserv.GetCurrentTicks) * 55;
|
||||
end;
|
||||
|
||||
|
||||
|
@ -143,7 +143,7 @@ var
|
||||
tz : TimeZone;
|
||||
begin
|
||||
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;
|
||||
|
||||
|
||||
|
@ -151,7 +151,7 @@ end;
|
||||
|
||||
function GetMsCount: int64;
|
||||
begin
|
||||
GetMsCount := MemL [$40:$6c] * 55;
|
||||
GetMsCount := int64 (MemL [$40:$6c]) * 55;
|
||||
end;
|
||||
|
||||
{******************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user