beat off
verb
Meaning
To drive something away with blows or military force. Now often used figuratively.
To masturbate, usually a man of himself.
To waste time.
"I beat off at work all day; I didn't get anything done."