Made time a class
Made time units clear in pwm