Warning fix

Fixed an incorrect sizeof parameter. Also got rid of some warnings by removing unused variables and making a minor change to TimerType().