Really Hard Riddle 10

Q: Every night I’m told what to do,

and every morning I do what I’m told.

But I still don’t escape your scold.

What am I?

A: An alarm clock