xref: /titanic_50/usr/src/lib/libast/common/man/strelapsed.3 (revision 6075882998740edfaff4dd844974e188f8bd6793)
.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.