Репозитории ALT
S: | 2.2.5-alt1.1 |
5.1: | 2.1.2-alt1 |
4.1: | 1.2.1-alt1 |
4.0: | 1.2.1-alt1 |
3.0: | 1.0.0-alt0.1 |
Группа :: Система/Библиотеки
Пакет: libdc1394
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libdc1394-clk.patch
Скачать
Скачать
--- examples/grab_partial_image.c.orig 2005-08-18 11:03:06 +0400
+++ examples/grab_partial_image.c 2006-12-09 01:05:25 +0300
@@ -38,6 +38,7 @@
#include <stdlib.h>
#include <time.h>
#include <sys/times.h>
+#include <unistd.h>
int main(int argc, char *argv[])
@@ -218,7 +219,7 @@
/*---------------------------------------------------------------------
* output elapsed time
*---------------------------------------------------------------------*/
- elapsed_time = (float)(times(&tms_buf) - start_time) / CLK_TCK;
+ elapsed_time = (float)(times(&tms_buf) - start_time) / sysconf(_SC_CLK_TCK);
printf( "got frame %d. elapsed time: %g sec ==> %g frames/second\n",
i, elapsed_time, (float)i / elapsed_time);
}