* meter - I mete out time to a child process
 * Copyright (C) 2001  Leon Brooks <leon-delthisword@cyberknights.com.au>;

 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * with this program (in the file LICENCE); if not, write to
 *	The Free Software Foundation, Inc.,
 *	59 Temple Place - Suite 330,
 *	Boston, MA  02111-1307, USA.

To use:

    meter time command

Example:

    meter 1h fetchmail -f /etc/fetchmailrc.ispname

To compile:

    gcc -Wall -O2 -o meter meter.c

This archive contains the source, this file, the licence (I'm Australian and
spell that way) and a binary compiled under Mandrake 8.1 with gcc 2.96
against glibc 2.2.4, which might run under any glibc-2 (libc-6) system (but
I do not represent that it will).

It's almost certainly portable enough to compile on anything vaguely Unixy
(like OS/2, BeOS, OS/X, CygWin, djcpp) but I make no promises at all. The
only vaguely funny stuff are signals and particularly SIGLARM, and even then
the vanilla flavours of calls are used and meter doesn't much care what
happens to signal handlers after they're invoked, nor does it mess with
SIGCHLD at all.

Writing this up took longer than writing the program.