Ovulation pain question

Li

Ovulation pain occurs before or after the egg is released? I’ve had it all day today