- or download this
#include <stdio.h>
#include <stdlib.h>
...
printf( "\nfinal size: %lld; took %.3f seconds\n", n * 1000, elaps
+ed );
exit( 0 );
}
- or download this
mehere@mehere-desktop:~$ gcc mem.c -o memtest
mehere@mehere-desktop:~$ ./memtest
final size: 1000000000; took 0.000 seconds
- or download this
#include <stdio.h>
#include <time.h>
...
printf( "\nfinal size: %I64d; took %.3f seconds\n", n * 1000, elap
+sed );
exit( 0 );
}