Timing pulsars and detecting radio transients with CHIME