I want to find out how long it takes for a function to run...
timer on
CallFunction(blah,blah etc etc)
timer off
get time in millisecs
Any ideas please?
Alan
Timing a function
Re: Timing a function
This is in millisec:alanuk wrote:I want to find out how long it takes for a function to run...
timer on
CallFunction(blah,blah etc etc)
timer off
get time in millisecs
Any ideas please?
Alan
t1=timeGetTime_()
allFunction(blah,blah etc etc)
t2=timeGetTime_()-t1
../tomio
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
> If it was in my help file (3. I wouldn't have had to ask.
It's not in the help file because GetTickCount is an API command (as are
all commands ending with an underscore). All such commands are part
of another huge set of docs for Windows programmers, and as such are
not included with PureBasic because they are not PureBasic-specific.
See the FAQ in the Beginners forum for more details.
It's not in the help file because GetTickCount is an API command (as are
all commands ending with an underscore). All such commands are part
of another huge set of docs for Windows programmers, and as such are
not included with PureBasic because they are not PureBasic-specific.
See the FAQ in the Beginners forum for more details.