EASA definition:
Flight Time: "the total time from the moment an aircraft first moves for the
purpose of taking off until the moment it finally comes to rest at the end of the flight"
Therefore the ground return is a flight, and all of it counts towards "total flight time" column in your logbook. However, no takeoff nor landing performed.
It wouldn't be "flight time" if you were asked to just taxi the aircraft from one stand to another, because you didn't have the purpose of taking off.
Look at this interesting PDF of differences in definitions between ICAO and EASA:
https://hub.easa.europa.eu/crt/docs/...a2c5e3dc49970c