working version of the timing measure logic for a request