Implement FPS counter for Linux.