You can reverse time for (usually) ten seconds, and it uses up one "sand tank" each time. There aren't any restrictions on where you can use it, but there's certain things that make the timer reset (usually getting more sand), and you have to let the timer charge up after you do them.
I love to die on purpose in an impressive way and then undo it so that it never happened
-willie