Well, at the end I found this code which does the trick quite well:
http://www.swissdelphicenter.ch/torr...ode.php?id=216

I measured the FPS and is very precise; although it can't go faster than 60fps, that's ok because the animation looks smooth.