Determining external clock frequency

Hi,
Is it possible to determine the external clock frequency dynamicaly in my firmware even though the clock crystal on board is changed.

More questions in this forum