Skip to content

Instantly share code, notes, and snippets.

@kenjiSpecial
Created March 19, 2013 10:52
Show Gist options
  • Save kenjiSpecial/5195211 to your computer and use it in GitHub Desktop.
Save kenjiSpecial/5195211 to your computer and use it in GitHub Desktop.
easy calculating of time for openFrameworks.
//--------------------------------------------------------------
void testApp::update(){
// receiving the float value
curTime = ofGetElapsedTimef();
dt = curTime - lastTime;
lastTime = curTime;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment