Twitching is not only a sign of dogs dreaming. It can also indicate other phenomena, such as muscle or nervous system disorders and seizures. A dreaming dog will show signs of twitching for less than 30 seconds, but a dog undergoing a seizure or shaking while sleeping will be stiffer, more rigid, and more violent. During these cases, it is best not to wake your dog up to avoid unwanted consequences.