Which of these choices is the best definition of absolute dating?​ Finding the age of an object compared to other objects.

Determining the age of a rock layer by studying the fossils present.
Measuring the age of an object in years.