B
Bob Nicholls
I am noticing something weird with the value returned from
QueryPerformanceCounter. I have declared the function as:
<DllImport("coredll.dll", EntryPoint:="QueryPerformanceCounter")> _
Public Shared Function QueryPerformanceCounter(ByRef perfCounter As Int64)
As Integer
End Function
and am calling it thus:
Dim lNow As Int64
If QueryPerformanceCounter(lNow) = 0 Then
Throw New ApplicationException
End If
The strange thing is that lNow seems to wrap at 2^32 even though the
parameter is declared as Int64. Is this to be expected if so I am not sure
how it should be used.
Thanks for any help.
Bob
QueryPerformanceCounter. I have declared the function as:
<DllImport("coredll.dll", EntryPoint:="QueryPerformanceCounter")> _
Public Shared Function QueryPerformanceCounter(ByRef perfCounter As Int64)
As Integer
End Function
and am calling it thus:
Dim lNow As Int64
If QueryPerformanceCounter(lNow) = 0 Then
Throw New ApplicationException
End If
The strange thing is that lNow seems to wrap at 2^32 even though the
parameter is declared as Int64. Is this to be expected if so I am not sure
how it should be used.
Thanks for any help.
Bob