mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
amicommon: the use OS-defined TICKS_PER_SECOND const instead of redefining it using another name
git-svn-id: trunk@30391 -
This commit is contained in:
parent
99123a1ea9
commit
48b38994c8
@ -90,7 +90,6 @@ const
|
||||
SecsPerDay : LongInt = 86400;
|
||||
SecsPerHour : Integer = 3600;
|
||||
SecsPerMinute : ShortInt = 60;
|
||||
TICKSPERSECOND = 50;
|
||||
|
||||
|
||||
{******************************************************************************
|
||||
@ -218,7 +217,7 @@ begin
|
||||
Minutes:=Minutes+Min;
|
||||
{ Find the number of seconds and convert to ticks }
|
||||
S := LocalDate;
|
||||
Ticks:=TICKSPERSECOND*S;
|
||||
Ticks:=TICKS_PER_SECOND*S;
|
||||
end;
|
||||
|
||||
|
||||
@ -856,7 +855,7 @@ begin
|
||||
with FInfo^.fib_Date do
|
||||
FTime := ds_Days * (24 * 60 * 60) +
|
||||
ds_Minute * 60 +
|
||||
ds_Tick div 50;
|
||||
ds_Tick div TICKS_PER_SECOND;
|
||||
end else begin
|
||||
FTime := 0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user