Sir Chris Hoy has revealed how long he has been given to live after being diagnosed with terminal cancer.