If the engine is revving up, then the transmission is having problems. If the engine is not revving, then check the linkage from the accelerator to the throttle body.
Shift to neutral, coast to shoulder, check linkage and repair before you proceed.
check the carbureator linkage and the throttle cable for something hanging up, also check the accelerator pedal itself for needing lubed.
do you have mechanical linkage or accelerator cable. these may be dirty and need lube to stop them sticking. check for broken return spring on accelerator
well with any vehicle if the engine is accelerating usually its a linkage problem meaning your linkage is getting stuck somewhere check that first
It is electronic controled
Check for obstructions like floor mats and junk that are effecting the accelerator pedal operation. Also check for sticky or binding accelerator pedal cable and/or throttle body linkage. If the check engine light is illuminated you can have your local auto parts store scan for codes that may lead you to the cause of the problem.
Assuming nothing obvious (like having your foot on the accelerator) there is a problem with sticking or broken or disconnected accelerator linkage. On late-model cars with cable linkage and fuel injection you will need to inspect everything related from the accelerator pedal to the injector butterfly lever on the engine.
* Binding pedal linkage * Binding carburetor linkage (carb models) * Binding throttle body linkage or butterfly (fuel-injection models)
Linkage for what? Manual shifter, automatic shifter, accelerator, clutch, heater parts, etc. Why does it need to be measured?
The accelerator linkage is binding.
Look on the throttle body opposite of the accelerator linkage, most of them are there.