In reply to javatea:
Thanks for the response. However I have no knowledge of expected pulse width. I only can monitor a clock, look when it first provides N stable pulse widths, consider that first stable frequency, look for switching with irregular pulse widths and then look for N stable pulse width again. Next compare first middle and last frequencies to see if it glitched.