gettickcount

Elapsed Time with Environment.TickCount() - Avoiding the wrap

Does the absolute value protect the following code from the Environment.TickCount wrap? If Math.Abs((Environment.TickCount And Int32.MaxValue) - StartTime) > Interval Then StartTime = (Environment.TickCount And Int32.MaxValue) . . . End If Is there a better method of guarding against the Environment.TickCount() wrap? (This ...

Declaring external functions depending on whether they exist

Hi. I would like to declare an external function from the kernel32.dll library whose name is GetTickCount64. As far as I know, it is defined only in Vista and in later Windows versions. This means that when I define the function as follows: function GetTickCount64: int64; external kernel32 name 'GetTickCount64'; I will certainly not ...

GetTickCount function

Hi all, I have a question regarding GetTickCount function, I have two calls to this function in my code with several commands between them and the function in both calls returns same count. i.e. var1 = GetTickCount(); code : : var2 = GetTickCount(); var1 and var2 has same values in it. can someone help? ...