Time dilation is the difference in elapsed time as measured by two clocks, either because of a relative velocity between them, or a difference in gravitational potential between their locations.