Hi Bill. Thanks for your answer.
Returning back to my problem, actually it doesn't matter to me if I have slight frequency variations on my 25kHz signal. In fact, I can vary the frequency of this signal, since it comes from a signal generator.
Now, either when the frequency of the generator is set to (about) 25kHz or if I sweep it, the succesive (variable length) periods are given on multiples of exactly 500ns, which is the apparent behavior that I could expect if I used a 2MHz timebase, but this is not supposed to be the case.
I still don't know what's happening.
Thank you.