Posted under http://www.autohotkey.com/board/topic/1 ... leepcount/.
I have this code that I wanted to used it to count run time of the script. It was used to count Sleep time.
Code: Select all
target_time = 1000
target = %A_YYYY%%A_MM%%A_DD%%target_time%00
EnvSub, target, %A_Now%, Seconds
Sleep, % target * 1000 + 25000 ; (milliseconds) + delaytime
Code: Select all
target_time = a_now
Sleep 5123 <--- Added to test the script
target = %A_YYYY%%A_MM%%A_DD%%target_time%00
EnvSub, target, %A_Now%, Seconds
Sleep, % target * 1000 ; (milliseconds)
Thanks