ETA Calculation

Having rode 'movies' a number of times I feel that the ETA timing is extremely 'fluid'. Going uphill when putting watts down brings the time down considerably but flying down a hill at top speed but little wattage tells me that I've got hours to finish the course. Can the ETA be linked to speed or something that is more accurate for most of the course?