That number the captain says comes straight off the flight plan or Flight Management Computer and takes into account flight plans and winds en route. If the flight is flown exactly as the computer expects it can be scary how accurate everything is.
Ive seen flight time exactly match and fuel figures within 0.5% of estimated. But if flying into a congested airspace, ATC separation requirements and not ideal vectoring can throw that off a little bit.