AhkTimerClass GitHub: https://github.com/bceenaeiklmr/AhkTi...
The AhkTimerClass is a Timer class for benchmarking in AutoHotkey scripts. It uses the QueryPerformanceCounter API for more accurate timing than the built-in A_TickCount command. The class allows you to add timestamps, reset the counter, and display results.
Features
High-Precision Timing: Uses QueryPerformanceCounter
Record Timestamps: Add named or unnamed timestamps.
Reset Counter: Easily reset the timer counter.
Display Results: Show timing results in a formatted message box.
Installation
Download the AhkTimerClass.ahk file from the repository.
Include the AhkTimerClass.ahk script in your AutoHotkey project.
Run the test file.
Typical output
∑ 46.40 ms
avg 7.73 ms
min 3.03 ms
max 12.11 ms
fps 21.55
n 6
name ms fps rank
Func1 3.03 329.58 1
Func2 6.95 143.98 4
Func3 6.97 143.45 2
Func4 6.62 151.15 3
Func5 10.73 93.17 5
Func6 12.11 82.61 6