Skip to content

Instantly share code, notes, and snippets.

@finlaybob
Created November 16, 2012 19:52
Show Gist options
  • Save finlaybob/4090330 to your computer and use it in GitHub Desktop.
Save finlaybob/4090330 to your computer and use it in GitHub Desktop.
Timing code
auto t1 = Clock::now();
app->update(0);
app->display();
auto t2 = Clock::now();
auto tt = (t2-t1);
elapsed = (float)tt.count()/1000000.0f;
app->fpsUpdate(elapsed);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment