summaryrefslogtreecommitdiff
path: root/src/time/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/clock.c')
-rw-r--r--src/time/clock.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/time/clock.c b/src/time/clock.c
new file mode 100644
index 00000000..a141e36d
--- /dev/null
+++ b/src/time/clock.c
@@ -0,0 +1,19 @@
+#include <time.h>
+
+/** get processor time **/
+clock_t clock(void)
+{
+ return (clock_t)-1;
+}
+
+/***
+returns the amount of processor time used by the current
+program. To convert this time to seconds, divide it by CONSTANT(CLOCKS_PER_SEC).
+***/
+
+/*
+IMPLEMENTATION(What constitutes CAST(TYPEDEF(clock_t), 0))
+RETURN_FAILURE(CAST(TYPEDEF(clock_t), -1))
+RETURN_SUCCESS(the processor time of the current program)
+STDC(1)
+*/