From be8533624eff72b3c8f03d52905192fce0100485 Mon Sep 17 00:00:00 2001 From: Joshua Fuhs Date: Fri, 23 Nov 2012 10:37:44 -0500 Subject: [PATCH] Commit simple script for measuring fastest user input capability --- test/UserInputTiming.ahk | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/UserInputTiming.ahk diff --git a/test/UserInputTiming.ahk b/test/UserInputTiming.ahk new file mode 100644 index 0000000..8b06fce --- /dev/null +++ b/test/UserInputTiming.ahk @@ -0,0 +1,31 @@ + +/* + * Measure the minimum delay between button presses. + * + * Minimum observed delay: 80ms (2012/11/23) + */ + + +Start_Day:=A_YDay +Last_Time:= (((((((A_YDay - Start_Day) * 24 ) + A_Hour ) * 60) + A_Min) * 60) + A_Sec) * 1000 + A_MSec +Min_Delay:=1000000 + + +MsgBox, ms base: %Last_Time% + +Return + + +r:: + Cur_Time := (((((((A_YDay - Start_Day) * 24 ) + A_Hour ) * 60) + A_Min) * 60) + A_Sec) * 1000 + A_MSec + Difference := Cur_Time - Last_Time + + If (Difference < Min_Delay) + Min_Delay := Difference + + Last_Time := Cur_Time + Return + +q:: + MsgBox, Min_Delay: %Min_Delay% + ExitApp