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:
Károly Balogh 2015-03-30 08:26:16 +00:00
parent 99123a1ea9
commit 48b38994c8

View File

@ -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;