added code for recording time based on each request