Hello,
Hmm, I dont think this is the correct approach and it is also not possible to achieve by SWT.
For such purpose use one of the times which device offer. Or simply switch state of some pin in interrupt routine and measure it via oscilloscope.
Best regards,
Peter