Using millis to measure intervals to trigger a digital output

I have experience the shock myself and it's not bad, it's only powerful enough to startle you. There's also a vibration and beep function which I will most likely be using instead of the shock.