I get the timestamp of the GPIO trigger using the timestamp available in the GPIO. As follow,
if (fdset.revents & PO