Permalink
Browse files

update readme

  • Loading branch information...
1 parent 6c051c9 commit f8cc57be315e2b49aa3969b9c1edbdd9a56026a5 @armadillu committed Mar 19, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 ReadMe.md
View
@@ -1,19 +1,19 @@
Simple of addon to easily mesure execution times on any parts of your code
- ofxTimeMeasurements chrono;
+ ofxTimeMeasurements * chrono = ofxTimeMeasurements::instance();
void testApp::update(){
- chrono.startMeasuring("update");
+ chrono->startMeasuring("update");
//YOUR UPDATE CODE HERE
- chrono.stopMeasuring("update");
+ chrono->stopMeasuring("update");
}
void testApp::draw(){
- chrono.startMeasuring("draw");
+ chrono->startMeasuring("draw");
//YOUR DRAW CODE HERE
- chrono.stopMeasuring("draw");
+ chrono->stopMeasuring("draw");
- chrono.draw(10, 10);
+ chrono->draw(10, 10);
}

0 comments on commit f8cc57b

Please sign in to comment.