]> mj.ucw.cz Git - moe.git/commitdiff
Moved timelib to examples/timelib. The misc directory is gone.
authorMartin Mares <mj@ucw.cz>
Thu, 15 May 2008 09:58:08 +0000 (11:58 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 15 May 2008 09:58:08 +0000 (11:58 +0200)
examples/timelib/timelib.h [new file with mode: 0644]
examples/timelib/timelib.pas [new file with mode: 0644]
examples/timelib/timepas.c [new file with mode: 0644]
examples/timelib/timetest.c [new file with mode: 0644]
examples/timelib/timetest.pas [new file with mode: 0644]
misc/timelib.h [deleted file]
misc/timelib.pas [deleted file]
misc/timepas.c [deleted file]
misc/timetest.c [deleted file]
misc/timetest.pas [deleted file]

diff --git a/examples/timelib/timelib.h b/examples/timelib/timelib.h
new file mode 100644 (file)
index 0000000..ab37ec5
--- /dev/null
@@ -0,0 +1,5 @@
+#include <time.h>
+
+static inline int cpspc_time(void) {
+  return clock() * 1000 / CLOCKS_PER_SEC;
+}
diff --git a/examples/timelib/timelib.pas b/examples/timelib/timelib.pas
new file mode 100644 (file)
index 0000000..3e1dfcf
--- /dev/null
@@ -0,0 +1,8 @@
+unit timelib;
+interface
+function cpspc_time:longint;cdecl;external;
+{$L timepas.o}
+{$LinkLib c}
+implementation
+begin
+end.
diff --git a/examples/timelib/timepas.c b/examples/timelib/timepas.c
new file mode 100644 (file)
index 0000000..000d22e
--- /dev/null
@@ -0,0 +1,6 @@
+#include <time.h>
+
+int cpspc_time(void)
+{
+  return clock() * 1000 / CLOCKS_PER_SEC;
+}
diff --git a/examples/timelib/timetest.c b/examples/timelib/timetest.c
new file mode 100644 (file)
index 0000000..36a0009
--- /dev/null
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include "timelib.h"
+
+int main(void)
+{
+  int i;
+  for (i = 0; i <100000000; i++);
+  printf("%d\n", cpspc_time());
+}
diff --git a/examples/timelib/timetest.pas b/examples/timelib/timetest.pas
new file mode 100644 (file)
index 0000000..0d996e5
--- /dev/null
@@ -0,0 +1,6 @@
+uses timelib;
+var i:longint;
+begin
+for i:=1 to 100000000 do i := i;
+writeln(cpspc_time);
+end.
diff --git a/misc/timelib.h b/misc/timelib.h
deleted file mode 100644 (file)
index ab37ec5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <time.h>
-
-static inline int cpspc_time(void) {
-  return clock() * 1000 / CLOCKS_PER_SEC;
-}
diff --git a/misc/timelib.pas b/misc/timelib.pas
deleted file mode 100644 (file)
index 3e1dfcf..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-unit timelib;
-interface
-function cpspc_time:longint;cdecl;external;
-{$L timepas.o}
-{$LinkLib c}
-implementation
-begin
-end.
diff --git a/misc/timepas.c b/misc/timepas.c
deleted file mode 100644 (file)
index 000d22e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <time.h>
-
-int cpspc_time(void)
-{
-  return clock() * 1000 / CLOCKS_PER_SEC;
-}
diff --git a/misc/timetest.c b/misc/timetest.c
deleted file mode 100644 (file)
index 36a0009..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdio.h>
-#include "timelib.h"
-
-int main(void)
-{
-  int i;
-  for (i = 0; i <100000000; i++);
-  printf("%d\n", cpspc_time());
-}
diff --git a/misc/timetest.pas b/misc/timetest.pas
deleted file mode 100644 (file)
index 0d996e5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-uses timelib;
-var i:longint;
-begin
-for i:=1 to 100000000 do i := i;
-writeln(cpspc_time);
-end.