Hello, I reviwed the SDK and the only example that may has your requeriment will be the anactrl.
This is the description of the example.
The anactrl_measure_frequency Example project is to demonstrate usage of the KSDK anactrl driver.
In the example, you can set a reference clock and target clock. The project will calculate the frequency of the
target clock according to the reference clock frequency.
Analog control measure frequency example.
Reference clock source: wdt oscillator.
Target clock source: 32kHz oscillator.
Target clock frequency: 29799 Hz.
Maybe that example could help you.
Best regards,
Pavel