From b45623f31053ac55b1f966ee1d5d4c22cd5db24e Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 10 Apr 2013 09:06:36 +0200 Subject: Rename --time parameter --duration --- tools/grab.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/grab.c') diff --git a/tools/grab.c b/tools/grab.c index bbe9269..325c02f 100644 --- a/tools/grab.c +++ b/tools/grab.c @@ -130,7 +130,9 @@ record_frames (UcaCamera *camera, Options *opts) n_frames++; } - g_print ("Stop recording\n"); + g_print ("Stop recording: %3.5f frames/s\n", + n_frames / g_timer_elapsed (timer, NULL)); + uca_camera_stop_recording (camera, &error); store_frames (buffer); ring_buffer_free (buffer); @@ -155,7 +157,7 @@ main (int argc, char *argv[]) static GOptionEntry entries[] = { { "num-frames", 'n', 0, G_OPTION_ARG_INT, &opts.n_frames, "Number of frames to acquire", "N" }, - { "time", 't', 0, G_OPTION_ARG_DOUBLE, &opts.duration, "Duration in seconds", NULL }, + { "duration", 'd', 0, G_OPTION_ARG_DOUBLE, &opts.duration, "Duration in seconds", NULL }, { NULL } }; -- cgit v1.2.3