It seems very misleading to say that they are being paid $X/hour if the denominator is supposed to represent the number of class hours rather than the number of hours worked actually spent working. Everyone will assume the latter, so you should be explicit about that.
As everyone who has done any teaching knows, the time spent standing in front of a class is just a small part of the total required time.