already in your ticket , a local guide is included and you can't enter without it. usually it is for 2 hours for the guide and then you will continue exploring the site by yourself. 5 hours is enough for walking but you can extend it to be a full day if you are planning to have an overnight at Petra.