]> pd.if.org Git - pdclib/blobdiff - functions/time/clock.c
Comment reformatting for consistency.
[pdclib] / functions / time / clock.c
diff --git a/functions/time/clock.c b/functions/time/clock.c
new file mode 100644 (file)
index 0000000..b3fb840
--- /dev/null
@@ -0,0 +1,28 @@
+/* clock( void )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <time.h>
+
+#ifndef REGTEST
+
+clock_t clock( void )
+{
+    /* TODO: Placeholder implementation (valid but useless) */
+    return -1;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif