If you are playing, singing, or dancing in time with a piece of music, you are following the rhythm and speed of the music correctly. If you are out of time with it, you are not following the rhythm and speed of the music correctly.
Her body swayed in time with the music. [+ with]
We were standing onstage playing completely out of time.