Btw, have you looked at sdlticks.pas and the TimerClass there in?