Mittelschmerz /ovulation pain

I experience mittelschmerz every month for about 24 hours. My husband and I are TTC and we had sex at the very start of this cramping.

Are mittelschmerz a sign that your ovulation is about to begin? Or that it has already passed? Hope we weren't to late!