Device: Add getElapsedFrameTime() and better delay().