defining local variables for time and start counter