Skip to content

Instantly share code, notes, and snippets.

@owensd
Last active August 29, 2015 14:02
Show Gist options
  • Save owensd/d6405ee35cdd40c67c59 to your computer and use it in GitHub Desktop.
Save owensd/d6405ee35cdd40c67c59 to your computer and use it in GitHub Desktop.
- (void)testLoopOneMillionTimes
{
__block int count = 0;
[self measureBlock:^{
for (int i = 0; i < 1000000; ++i) {
count++;
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment