Used to be there were very complex, very expensive power-measuring systems that were normally only available to big teams/researchers with lots of bucks.
Now, as technology increases, even serious recreational cyclists can afford them:
http://www.fact-canada.com/Powertap/...att-meter.html