With TIMER, you don't need to use a stopwatch to time the executions
of things. For instance, to time the execution of:
	FOO -iBAX asdf
type:
	TIMER FOO -iBAX asdf
The source is to show how trivial this is to do, followed by a
uuencoded binary for those who don't want to bother compiling it.
----------------------------------------------
/*_ timer.c   Fri Apr 18 1986		*/
/* Written by Walter Bright 		*/
/* Contributed to Public Domain		*/
/* To compile (with Datalight C):	*/
/*	DLC -mci timer			*/

#include	<time.h>

#if DLC
int _okbigbuf = 0;	/* Use as little memory as possible	*/
#endif

main(argc,argv)
int argc;
char *argv[];
{	clock_t clock(),starttime;
	int status;

	if (argc < 2)
	{	printf("Time execution of a command.\nUse:\n\ttimer command\n")
;
		exit(1);
	}
	argv[argc] = 0;		/* terminate with a 0 (unportable method) */
	starttime = clock();
	status = spawnvp(0,argv[1],argv + 1);
	starttime = clock() - starttime;
	if (status == -1)
	{	printf("'%s' failed to execute\n",argv[1]);
		exit(1);
	}
	printf("Elapsed time = %d.%02d seconds\n",(int) (starttime/CLK_TCK),
		(int) (starttime%CLK_TCK));
	if (status != 0)
		printf("--- errorlevel %d\n",status);
}

#if DLC

/* Prevent exit() and fclose() from being linked in from library	*/
/* (to conserve the size of the output file).				*/

exit(exitstatus)
int exitstatus;
{
	_exit(exitstatus);
}
#endif

