746 joules per second = 746 watts = 1 horsepower
340 joules per second = 340 watts = (340/746) = 0.456 horsepower
Power is a RATE or a SPEED of doing work.
How long you do it doesn't matter.
Just like 30 miles per hour doesn't change whether you do it for an hour or for 10 minutes.