diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-07-04 16:58:14 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-07-04 16:58:14 +0200 |
commit | 8c04f3936822c13acdb6711ccd3159395a96ee0b (patch) | |
tree | 571f9e0b19a1034df0aa92517a623f3c8a870b00 /test/ipedec.c | |
parent | b9ce6027dde8b3c6fd002d38e3cee07e7711d73c (diff) | |
download | ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.gz ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.bz2 ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.xz ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.zip |
Make Timer private and calculate elapsed seconds
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) |