SDL timer
fps limit adapted