xref: /titanic_44/usr/src/lib/libast/common/man/strelapsed.3 (revision 0398691684c2596072212e4ca9d7033ad7ccfa54)
.fp 5 CW .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

STRELAPSED 3
NAME
strelapsed - parse elapsed time expression
SYNOPSIS
.L "unsigned long strelapsed(char* buf, char** next, int persec)"
DESCRIPTION
strelapsed returns a pointer to a string representation of the elapsed time for .L (count/persec) seconds. The two largest time units are used, limiting the return value length to at most 6 characters. The units are:

s seconds

m minutes

h hours

days

weeks

M months

Y years

S scores

"SEE ALSO"
strelapsed(3)
CAVEATS
The return value points to a static area that is overwritten on each call.