summaryrefslogtreecommitdiff
path: root/libm/double/time-it.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-22 14:04:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-22 14:04:29 +0000
commit7ce331c01ce6eb7b3f5c715a38a24359da9c6ee2 (patch)
tree3a7e8476e868ae15f4da1b7ce26b2db6f434468c /libm/double/time-it.c
parentc117dd5fb183afb1a4790a6f6110d88704be6bf8 (diff)
Totally rework the math library, this time based on the MacOs X
math library (which is itself based on the math lib from FreeBSD). -Erik
Diffstat (limited to 'libm/double/time-it.c')
-rw-r--r--libm/double/time-it.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/libm/double/time-it.c b/libm/double/time-it.c
deleted file mode 100644
index 32d07db4e..000000000
--- a/libm/double/time-it.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Reports run time, in seconds, for a command.
- The command argument can have multiple words, but then
- it has to be quoted, as for example
-
- time-it "command < file1 > file2"
-
- The time interval resolution is one whole second. */
-
-
-#include <time.h>
-int system ();
-int printf ();
-
-int
-main (argv, argc)
- int argv;
- char **argc;
-{
- time_t t0, t1;
-
- if (argv < 2)
- {
- printf ("Usage: time-it name_of_program_to_be_timed\n");
- exit (1);
- }
- time (&t0);
- /* Wait til the clock changes before starting. */
- do
- {
- time (&t1);
- }
- while (t1 == t0);
- system (argc[1]);
- t0 = t1;
- time (&t1);
- printf ("%ld seconds.\n", t1 - t0);
- exit (0);
-}