Washing machines are programmed so that they spin one way, stop, take 7 to 15 second break and then start to spin another direction again.
Break time depends on model and machines that are made for professional use do take only very short brake.
Why there need to be so long break?