Historically, time intervals have been quantified by counting the repeating motion between events, such as the apparent motion of the sun in the sky. Replacements involving consistent motion that repeats more frequently—swinging pendulums, vibrating crystals, and oscillating atoms—enabled more precise plotting of events along the time dimension.
While three-dimensional motion through space is possible in any direction, our perception is that time flows only from the past to the future. The second law of thermodynamics states that the entropy, or disorder, of the universe cannot decrease, preventing certain events from occurring after others and imposing this "arrow of time."
However, relativity combines time and space into a single structure—space-time—and just as all of space exists, so does all of time, making perceptions of the past, present, and future illusory. The theory also explains why the passage of time slows the more one moves through space and the stronger the gravity one experiences.
By contrast, time is considered a background parameter in quantum physics, independent of one's motion or location, contributing to the incompatibility of quantum mechanics with general relativity.