How car manufacturers measure torque and horsepower

Torque and horsepower are both ways of understanding force where torque measures a twisting force and horsepower measures that force over time.