Ovulation

I was having some cramping right before ovulation and I read that it's bc the egg was released. My question is, how long does it take for the egg to drop?