diff options
author | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2014-01-06 15:39:05 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2014-01-06 15:39:05 +0100 |
commit | 09397c778731916891d660ac4ebbb6f3ac5a15fb (patch) | |
tree | 9ec6b32f0a32f2744d173ca0fe91bc5ea2f2cb50 /flags/try_clock_gettime.c | |
download | djb-way-09397c778731916891d660ac4ebbb6f3ac5a15fb.zip djb-way-09397c778731916891d660ac4ebbb6f3ac5a15fb.tar.gz |
Initial commit
Diffstat (limited to 'flags/try_clock_gettime.c')
-rw-r--r-- | flags/try_clock_gettime.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/flags/try_clock_gettime.c b/flags/try_clock_gettime.c new file mode 100644 index 0000000..b6aa5af --- /dev/null +++ b/flags/try_clock_gettime.c @@ -0,0 +1,17 @@ +#include <stdlib.h> +#include <unistd.h> +#ifdef SYSV + #include <time.h> +#else + #include <sys/time.h> +#endif + + +int main(void) +{ + struct timespec s; + clock_gettime(CLOCK_REALTIME, &s); + return EXIT_SUCCESS; +} + + |