Kernel.Time

Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: Issue # 97, Create Docu for (System)Kernel

Post by Ivan Denisov »

Robert, WinApi.GetTickCount() can not return the value less than 0, so told < 0 will never be TRUE.
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: Issue # 97, Create Docu for (System)Kernel

Post by Robert »

Ivan Denisov wrote:Robert, WinApi.GetTickCount() can not return the value less than 0, so told < 0 will never be TRUE.
It can return the bit pattern "1111 0000 0000 ... 0000" which, interpreted as a Component Pascal INTEGER, is negative.


BUT I now agree with Josef, Kernel.Time is correct. Tricky (!), but correct.

Robert
Post Reply