It doesn't take long to walk into the centre of Gibraltar from the ship.
If it is your first time to Gibraltar then do the sights.
There is a ticket machine at the entrance to the station on your return. The machine takes notes and will give change.
The trains are very crowded and we had to stand all the way to Rome. There is a toilet on the train.