Public Function GetTickCount64() As LongLong
Returns the number of milli seconds this computer is running as 64 bit Long (LongLong). The accuracy is (only) milli seconds.
Dim lStartTick As Long = GetTickCount64()
Call SomeLongDuringTask
SendDebug $"Running the task took {GetTickCount64() - lStartTick} milli seconds."