Check changing frequency with SVA

Hi

I’m new to SVA so bear with me. Is there a way to check whether a clock frequency changes from one value to another within a set time?

I’ve come across the $period system function but am not sure how to utilize it as the frequency change occurs over multiple clock cycles.

Thanks