03-07-2007, 04:48 PM
so key this before anything that you want to use GetTickCount and
at the end of the code?
Code:
dim currenttick, nexttick, elapsed as long 'variables we are using
currenttick = gettickcount 'currenttick is now saved as the time this line was executedCode:
nexttick = gettickcount 'same as above
elapsed = nexttick - currenttick 'the elapsed time is the time recorded after the code minus the time recorded before the code