Normally, the time the aircraft takes to move using its own power via the fuel reserves and then the time it spends on the runway all count towards flight time. If an aeroplane is stationary due to a mechanical error and the pilot is still on board, that time spent on the runway is still considered flight time.