Best way of confirming system clock of controller
You don't specify a family as such, but you have tagged it "PIC".

The PIC microcontrollers all have the ability, when using either an external clock module or the internal oscillator, to feed the clock signal to a specific pin (OSC2), both for confirming the clock, and for driving external devices.