S&C, 're-reading your last and your OP I now see what you meant. Earlier in relation to the flight not the cabin.
Yes, a baro-timer would be the best option preventing premature detonation but ensuring detonation at altitude. How calculated point of detonation is something else to argue.