Calculating the speed of routines?
From my knowledge, the most accurate method is by using QueryPerformanceFrequency: code: var Freq, StartCount, StopCount: Int64; TimingSeconds: real; begin QueryPerformanceFrequency(Freq); QueryPerformanceCounter(StartCount); // Execute process that you want to time: … QueryPerformanceCounter(StopCount); TimingSeconds := (StopCount – StartCount) / Freq; // Display timing: … end;