| View previous topic :: View next topic |
| Author |
Message |
SAbboushi
Joined: 18 Sep 2004 Posts: 60
|
Posted: Tue Feb 22, 2005 5:40 am Post subject: How track the start and end time of script? |
|
|
Hi-
I want to track the start time, end time and duration of part of my AHK script. I searched for "time" in the AHK Community and was surprised not to find a single hit!
Does anyone have code that can help me? Thanks- |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Tue Feb 22, 2005 5:44 am Post subject: |
|
|
I'm not sure but maybe A_TickCount could be what you were looking for  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Tue Feb 22, 2005 6:02 am Post subject: |
|
|
Track duration (in milliseconds):
| Code: | begin := a_tickcount
msgbox,This script will exit after you close this message box.
end := a_tickcount - begin
fileappend,%end%`n,test.log |
Track beginning and ending times:
| Code: | fileappend,%a_hour%:%a_min%:%a_sec%`n,test.log
msgbox,This script will exit after you close this message box.
fileappend,%a_hour%:%a_min%:%a_sec%`n,test.log
return |
|
|
| Back to top |
|
 |
|