Function to check the match time