Linux needs _BSD_SOURCE to find timersub()
Track avg fps