Spending time with someone is never wasted time. Good or bad, it was what you needed. If it was good, then it taught you how to fill your heart. If it was bad, then it taught you how not to fill your heart. Either way, you were made better because of the experience.