|
|
@ -11,7 +11,7 @@ int main(int argc, char *argv[]) { |
|
|
|
double totalTime, totalIterations; |
|
|
|
|
|
|
|
// initialising stuff
|
|
|
|
Attractor myAttractor("attractors/testLorenz.stf"); |
|
|
|
Attractor myAttractor("attractors/testPolynomial.stf"); |
|
|
|
|
|
|
|
Projector projection; |
|
|
|
Canvas canvas(800, 800, 3); |
|
|
@ -23,7 +23,7 @@ int main(int argc, char *argv[]) { |
|
|
|
projection.output(); |
|
|
|
|
|
|
|
// iterating 4 evah
|
|
|
|
unsigned int iterations = 200000; // twintig duizend
|
|
|
|
unsigned int iterations = 2000; // tweeduizend
|
|
|
|
start = clock(); |
|
|
|
for ( unsigned int j = 1; j <= 100; j++ ) { |
|
|
|
for ( unsigned int i = 0; i <= iterations; i++ ) { |
|
|
@ -39,7 +39,7 @@ int main(int argc, char *argv[]) { |
|
|
|
totalIterations = 100.0*iterations; |
|
|
|
totalTime = ((double)(end-start)/(double)(CLOCKS_PER_SEC)); |
|
|
|
printf("\ntotal clock time: %f\n", totalTime ); |
|
|
|
printf("average iterations per second: %f\n", totalIterations/((double)(end-start)/(double)(CLOCKS_PER_SEC)) ); |
|
|
|
printf("average iterations per second: %f\n\n", totalIterations/((double)(end-start)/(double)(CLOCKS_PER_SEC)) ); |
|
|
|
|
|
|
|
// saving output
|
|
|
|
start = clock(); |
|
|
@ -48,7 +48,7 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
|
|
totalTime = ((double)(end-start)/(double)(CLOCKS_PER_SEC)); |
|
|
|
|
|
|
|
printf("\ntotal clock time for writing png: %f\n", totalTime ); |
|
|
|
printf("total clock time for writing png: %f\n", totalTime ); |
|
|
|
|
|
|
|
/*if ( argc <= 2 ) {
|
|
|
|
cout << endl << "nothing to do..." << endl; |
|
|
|