Horsepower and watts are measurement of: