OS Manuals

strelapsed(3ast)

strelapsed - parse elapsed time expression

STRELAPSED(3ast) STRELAPSED(3ast)

strelapsed - parse elapsed time expression

unsigned long strelapsed(const char* buf, char** next, int persec)

strelapsed returns a pointer to a string representation of the elapsed time for (count/persec) seconds. The two largest time units are used, limiting the return value length to at most 6 characters. The units are:

seconds
minutes
hours
months
years
scores

strelapsed(3)

The return value points to a static area that is overwritten on each call.

ksh 1.0.10-r37 · os · ingested 2026-10-11