I'm not sure if ElapsedTimer supports it but the way to do it, I'd think, is to use the TMR1 oscillator and drive it with an external 32.768kHz clock crystal. That oscillator doesn't stop when the PIC is put to sleep.

/Henrik.