As far as I know, after physical death (for example, cardiac arrest), the brain can exist for another couple of weeks. When you die, you seem to see and hear everything. This is indicated by those who survived clinical death. And so it may be 2 weeks, until the brain cells finally die out. But...