timeout based on time