moving debug

This commit is contained in:
tth 2019-09-29 00:09:59 +02:00
parent d672d02173
commit bacf6ecd94
1 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,11 @@ if (verbosity) fimg_print_version(0);
fimg_create(&fimgA, W, H, 3);
fimg_create(&fimgB, W, H, 3);
fimg_clear(&fimgA);
fimg_drand48(&fimgB, 100.0);
foo = fimg_dump_to_file(&fimgB, "B.fimg", 0);
fimg_timer_set(0);
#define NBP 500
for (foo=0; foo<NBP; foo++) {
@ -59,11 +63,12 @@ for (foo=0; foo<NBP; foo++) {
}
fait_un_dessin(&fimgB);
fimg_add(&fimgA, &fimgB, &fimgA);
fimg_mul(&fimgA, &fimgB, &fimgA);
// fimg_mul(&fimgA, &fimgB, &fimgA);
}
tb = fimg_timer_get(0);
fprintf(stderr, "%s = %f seconds\n", __func__, tb);
foo = fimg_save_as_pnm(&fimgA, "drand48.pnm", 0);
foo = fimg_dump_to_file(&fimgA, "drand48.fimg", 0);
fimg_destroy(&fimgA);
fimg_destroy(&fimgB);