Separate timeCheck function for switch