Clock Frequency Checker

In reply to ben@SystemVerilog.us:

Hi Ben,

Thank you for the new code.
Tried this,but now getting fail.
Maybe ,if I could display the values ,then could analyse the fail.
Is there a way to display the value for ($realtime - current_time))?
Any other approach possible?

Thanks,
Leya