Contractions after cervical check?

I had a cervix check 5 hours ago. I am almost 40 weeks and wasn't dilated. I have had some painful contractions in the past hour. Should I time them or is it just cramping from the check?