Mirror of git://git.busybox.net/busybox with our patches on top
Source
xxxxxxxxxx
Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
*/
//config:config TIME
//config: bool "time"
//config: default y
//config: help
//config: The time command runs the specified program with the given arguments.
//config: When the command finishes, time writes a message to standard output
//config: giving timing statistics about this program run.
//applet:IF_TIME(APPLET(time, BB_DIR_USR_BIN, BB_SUID_DROP))
//kbuild:lib-$(CONFIG_TIME) += time.o
//usage:#define time_trivial_usage
//usage: "[-v] PROG ARGS"
//usage:#define time_full_usage "\n\n"
//usage: "Run PROG, display resource usage when it exits\n"
//usage: "\n -v Verbose"
#include "libbb.h"
#include <sys/resource.h> /* getrusage */
/* Information on the resources used by a child process. */