Then use a high resolution or multimedia timer.