Please tell me it gets easier

My daughter is 2.5 and it’s just getting harder. Today, I got slapped in the face three times and then shrieked at for 15 minutes. Time outs just don’t work. Talking to her doesn’t work. How long does this temper tantrum stage last?