To joke around and not complete ones task; alternatively, to masterbate.
He spent all of his time pounding the dog instead of cleaning his room.