Immigration at Gatwick absolutely appalling, full of long queues and you'll be lucky to be out if there within the hour.
A taxi would take 1-2 hours, depending on the M23 and the pride of London, the M25. There will likely be heavy traffic while you approach Heathrow.
Trains won't be any...