Related: breathing is semi-autonomous, and controlled in the brain:
https://www.ucsf.edu/news/2017/08/408006/searching-brain-cel...
We can be aware of our breathing or not, yawn, and hold our breath. I imagine we can do similar with our sense of time: count seconds, have a sense of time, and lose our sense of time (on purpose or by accident).