Determining the high-pressure phase transition in highly-ordered pyrolitic graphite with time-dependent electrical resistance measurements