Echo off
if x%1 == x goto help
Echo *
Echo *  This procedure will run %1 %2 %3 %4 %5 %6 %7 %8 %9
Echo *  and help determine the optimum /FREQUENCY parameter
Echo *
Echo *  It should be run in the foreground, and should get all the 
Echo *  CPU if possible (disable background tasks).  
Echo *
Echo *  After the program starts up, leave it waiting for keystrokes 
Echo *  for about ten seconds, then exit as quickly as possible.
Echo *
pause
tame-res
tame /on /clear /timepoll /nki /timer /nfg /max:-1,-1
command /c %1 %2 %3 %4 %5 %6 %7 %8 %9
tame /s:1
tame /u
Echo *
Echo * The /FREQUENCY parameter should be set well below (perhaps half) 
Echo * the POLLS PER TICK value that is listed above.
Echo *
goto exit


:help
Echo *  This procedure will run an application program 
Echo *  and help determine the optimum /FREQUENCY parameter
Echo *
Echo *  It should be run in the foreground, and should get all the 
Echo *  CPU if possible (disable background tasks).  
Echo *  
Echo *  To run it, type - %0 command_name command_args ... 


:exit
