Skip to content

Instantly share code, notes, and snippets.

@goccy
Created December 24, 2012 11:05
Show Gist options
  • Save goccy/4368855 to your computer and use it in GitHub Desktop.
Save goccy/4368855 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
void render(int n)
{
int i, j;
volatile int k = 0;
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
k++;
}
}
}
int main(int argc, char **argv)
{
int i;
for (i = 0; i < 100; i++) {
render(2048);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment