How long does it take for a black eye to form?

A few days. A black eye is basically bruising, and like any bruise, it can form within a few days of an injury. Make sure to see your doctor if the eye itself is injured, you are experiencing pain, or noticing blurred vision.