mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 13:23:01 +02:00
feat: generating images now flexes how fast it is
This commit is contained in:
parent
4743f0b65e
commit
c7eb3b9d58
@ -210,6 +210,9 @@ int main(int argc, char *argv[]) {
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// Start time measurement
|
||||
clock_t start_time = clock();
|
||||
|
||||
int num_images, size, block_size, quality;
|
||||
const char *output_path;
|
||||
parse_arguments(argc, argv, &num_images, &size, &block_size, &quality, &output_path);
|
||||
@ -226,5 +229,10 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
free(color_list);
|
||||
|
||||
// End time measurement
|
||||
clock_t end_time = clock();
|
||||
double execution_time = (double)(end_time - start_time) / CLOCKS_PER_SEC;
|
||||
printf("Generated %d images in %f seconds!\n", num_images, execution_time);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user