The accuracy of hadrontherapy treatment is currently limited by ion-range uncertainties. In order to fully exploit the potential of this technique, we propose the development of a novel system for online control of particle therapy, based on TOF-resolved (time-of-flight) Prompt Gamma (PG) imaging with 100 ps time resolution. Our aim is to detect a possible deviation of the proton range with respect to treatment planning within the first few irradiation spots at the beginning of the session. The system consists of a diamond-based beam hodoscope for single proton tagging, operated in time coincidence with one or more gamma detectors placed downstream of the patient. The TOF between the proton time of arrival in the hodoscope and the PG detect...