summaryrefslogtreecommitdiffstats
path: root/bin/ps/keyword.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-06 21:18:37 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-06 21:18:37 +0000
commitbecd81c4a9315cc0cfd6078a89434a5ed7091e28 (patch)
tree018038cc3130503a09bafc00e2621fa02cc01d10 /bin/ps/keyword.c
parentb00060629b3ce16fbaae1856247191506fb052e0 (diff)
downloadFreeBSD-src-becd81c4a9315cc0cfd6078a89434a5ed7091e28.zip
FreeBSD-src-becd81c4a9315cc0cfd6078a89434a5ed7091e28.tar.gz
Implement a SUSv3-ignorant but "time"-similar format for "etime", elapsed
run time (NOT cpu time). cputime() and elapsed() both need to honour SUSv3 now.
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r--bin/ps/keyword.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 79ed4dc..17cdc78 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -96,6 +96,7 @@ static VAR var[] = {
{"cpu", "CPU", NULL, 0, kvar, NULL, 3, KOFF(ki_estcpu), UINT, "d",
0},
{"cputime", "", "time", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},
+ {"etime", "ELAPSED", NULL, USER, elapsed, NULL, 9, 0, CHAR, NULL, 0},
{"f", "F", NULL, 0, kvar, NULL, 7, KOFF(ki_flag), INT, "x", 0},
{"flags", "", "f", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},
{"ignored", "", "sigignore", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},
OpenPOWER on IntegriCloud