From 8c04f3936822c13acdb6711ccd3159395a96ee0b Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 4 Jul 2013 16:58:14 +0200 Subject: Make Timer private and calculate elapsed seconds --- test/ipedec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ipedec.c') 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) -- cgit v1.2.3