summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/clock_gettime.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/clock_gettime.c')
-rw-r--r--testsuites/libtests/POSIX/clock_gettime.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/clock_gettime.c b/testsuites/libtests/POSIX/clock_gettime.c
new file mode 100644
index 0000000000..6172a41b68
--- /dev/null
+++ b/testsuites/libtests/POSIX/clock_gettime.c
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2011 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <time.h>
+
+int
+main (void)
+{
+ struct timespec mytime;
+
+ return clock_gettime(CLOCK_REALTIME,&mytime);
+}