Scroll to navigation

STRELAPSED(3) Library Functions Manual STRELAPSED(3)

NAME

strelapsed - parse elapsed time expression

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

strelapsed(3)

CAVEATS

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