How Long was Jesus on the Cross?

Readings of the gospel regarding the death of Jesus shows that He was nailed to the cross at 9 a.m. and had passed by 3 p.m. So roughly about 6 hours of misery and pain was suffered.