diff options
Diffstat (limited to 'test/ipedec.c')
-rw-r--r-- | test/ipedec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ipedec.c b/test/ipedec.c index 52aebb0..f171cc8 100644 --- a/test/ipedec.c +++ b/test/ipedec.c @@ -21,6 +21,7 @@ typedef struct { int convert_bayer; } Options; + static int read_raw_file(const char *filename, char **buffer, size_t *length) { @@ -103,7 +104,6 @@ print_meta_data (UfoDecoderMeta *meta) printf("\n"); } - static int process_file(const char *filename, Options *opts) { @@ -217,8 +217,8 @@ process_file(const char *filename, Options *opts) fclose(fp); if (opts->verbose) { - mtime = timer->seconds * 1000.0 + timer->useconds / 1000.0; - printf("Decoded %i frames in %.5fms\n", n_frames, mtime); + printf("Decoded %i frames in %.5fms\n", n_frames, + timer_get_seconds (timer) * 1000.0); } if (opts->convert_bayer) |