summaryrefslogtreecommitdiffstats
path: root/test/benchmark.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-01-31 15:28:30 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-01-31 15:28:30 +0100
commitf3e6870dc9543cd9c0953f2b661bf64d93b2590a (patch)
tree14a69f37cb9fa437b7fd0eef569faa28bcc73199 /test/benchmark.c
parentab8ac8570526fe9f8696045582ea93b4067b89e9 (diff)
downloaduca-f3e6870dc9543cd9c0953f2b661bf64d93b2590a.tar.gz
uca-f3e6870dc9543cd9c0953f2b661bf64d93b2590a.tar.bz2
uca-f3e6870dc9543cd9c0953f2b661bf64d93b2590a.tar.xz
uca-f3e6870dc9543cd9c0953f2b661bf64d93b2590a.zip
Put libuca under LGPL
Diffstat (limited to 'test/benchmark.c')
-rw-r--r--test/benchmark.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/benchmark.c b/test/benchmark.c
index 7a6b6e0..60d030d 100644
--- a/test/benchmark.c
+++ b/test/benchmark.c
@@ -1,3 +1,19 @@
+/* Copyright (C) 2011, 2012 Matthias Vogelgesang <matthias.vogelgesang@kit.edu>
+ (Karlsruhe Institute of Technology)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2.1 of the License, or (at your
+ option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details.
+
+ You should have received a copy of the GNU Lesser General Public License along
+ with this library; if not, write to the Free Software Foundation, Inc., 51
+ Franklin St, Fifth Floor, Boston, MA 02110, USA */
#define __USE_BSD
#include <unistd.h>
@@ -54,7 +70,9 @@ void benchmark_cam(struct uca_camera *cam)
gettimeofday(&stop, NULL);
float seconds = time_diff(&start, &stop) / 1000000.0;
- printf("%f,%s;%i;%i;1;%.2f;%.2f\n", seconds,name, width, height, 1000.0 / seconds, width*height*pixel_size*1000.0/ (1024*1024*seconds));
+ printf("%f,%s;%i;%i;1;%.2f;%.2f\n", seconds,
+ name, width, height, 1000.0 / seconds,
+ width*height*pixel_size*1000.0/ (1024*1024*seconds));
height /= 2;
free(buffer);