We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cea97e commit a528b3bCopy full SHA for a528b3b
src/main.c
@@ -637,12 +637,12 @@ main(int argc, char *argv[])
637
gpujpeg_image_save_to_file(output, image_compressed, image_compressed_size, ¶m_image) != 0 ) {
638
fprintf(stderr, "Failed to save image [%s]!\n", argv[index]);
639
ret = EXIT_FAILURE;
640
+ } else {
641
+ duration = gpujpeg_get_time() - duration;
642
+ printf("Save Image: %10.4f ms\n", duration * 1000.0);
643
+ printf("Image Name: %10s\n", output);
644
}
645
- duration = gpujpeg_get_time() - duration;
- printf("Save Image: %10.4f ms\n", duration * 1000.0);
- printf("Image Name: %10s\n", output);
-
646
// Destroy image
647
gpujpeg_image_destroy(image);
648
0 commit comments