add a function to decode ps etime str to seconds