Implementation and simulation of an multihop ad hoc multi access network time sync algorithm