FWIW, whenever one checks FLIFO (flight info) for a trip via a reservation system, four times are recorded:
OUT - time OUT of the gate
OFF - time OFF the ground
ON - time ON the ground (touchdown)
IN - time IN the gate
It is my understanding that the time IN/OUT is recorded (at least in SABRE) automatically (as mentioned previously) when the brakes are applied/released.