File: clock-functions

package info (click to toggle)
eegdev 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,972 kB
  • sloc: ansic: 32,259; sh: 10,941; makefile: 247; lex: 128; yacc: 118
file content (39 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description:
clock_gettime and clock_nanosleep replacement

Files:
lib/clock_gettime.c
lib/clock_nanosleep.c
lib/portable-time.h				

Depends-on:
search-winfuncs
time

configure.ac:
save_LIBS=$LIBS
AC_SEARCH_LIBS([clock_gettime], [rt posix4])
AC_SEARCH_LIBS([clock_nanosleep], [rt posix4])
AC_CHECK_TYPES([clockid_t])
AC_CHECK_DECLS([clock_gettime, clock_nanosleep],,,[#include <time.h>])
AC_CHECK_FUNCS([nanosleep gettimeofday ftime _ftime posix_memalign])
AC_CHECK_FUNC_FNARG([GetSystemTimeAsFileTime], [0], [#include <windows.h>])
AC_REPLACE_FUNCS([clock_gettime clock_nanosleep])
AC_SUBST([LIB_CLOCK_FUNCS], "$LIBS")
LIBS=$save_LIBS

Makefile.am:

Include:
"portable-time.h"

Link:
$(LIB_CLOCK_FUNCS)

License:
LGPLv2+

Maintainer:
Nicolas Bourdaud