Created
May 10, 2010 17:13
-
-
Save slembcke/396267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct timeval start_time, end_time; | |
gettimeofday(&start_time, NULL); | |
for(int i=0; i<count; i++) | |
currDemo->updateFunc(i); | |
gettimeofday(&end_time, NULL); | |
long millisecs = (end_time.tv_sec - start_time.tv_sec)*1000; | |
millisecs += (end_time.tv_usec - start_time.tv_usec)/1000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment