AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How track the start and end time of script?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
SAbboushi



Joined: 18 Sep 2004
Posts: 60

PostPosted: Tue Feb 22, 2005 5:40 am    Post subject: How track the start and end time of script? Reply with quote

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
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Tue Feb 22, 2005 5:44 am    Post subject: Reply with quote

I'm not sure but maybe A_TickCount could be what you were looking for Question
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Tue Feb 22, 2005 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group