If the brain is starved of oxygen how long is it before the cells start to die and brain damage occurs?

if your brain has been starved of oxegen for 12 minutes due to a heart attack what can happen