diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-04-10 09:06:36 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-04-10 09:06:36 +0200 |
commit | b45623f31053ac55b1f966ee1d5d4c22cd5db24e (patch) | |
tree | 35212178cd89292af2d2c114628727a1d17bd29b /tools | |
parent | 0ef77576760e3b384ff15f6155c6073ab96fc8c7 (diff) | |
download | uca-b45623f31053ac55b1f966ee1d5d4c22cd5db24e.tar.gz uca-b45623f31053ac55b1f966ee1d5d4c22cd5db24e.tar.bz2 uca-b45623f31053ac55b1f966ee1d5d4c22cd5db24e.tar.xz uca-b45623f31053ac55b1f966ee1d5d4c22cd5db24e.zip |
Rename --time parameter --duration
Diffstat (limited to 'tools')
-rw-r--r-- | tools/grab.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 } }; |