pmParseInterval parses the argument string specifying an interval of
time and fills in the tv_sec and tv_usec components of the rslt
structure to represent that interval.
The input string is most commonly the argument following a -t command
line option to a PCP application, and the syntax is fully described
pmParseInterval returns 0 and errmsg is undefined if the parsing is
If the given string does not conform to the required syntax
pmParseInterval returns -1 and a dynamically allocated error message
string in errmsg. The error message is terminated with a newline and
includes the text of the input string along with an indicator of the
position at which the error was detected, e.g.
4minutes 30mumble^ -- unexpected value
In the case of an error, the caller is responsible for calling
free(3) to release the space allocated for errmsg.
This page is part of the PCP (Performance Co-Pilot) project.
Information about the project can be found at ⟨http://www.pcp.io/⟩.
If you have a bug report for this manual page, send it to
email@example.com. This page was obtained from the project's upstream
Git repository ⟨git://git.pcp.io/pcp⟩ on 2017-03-13. If you discover
any rendering problems in this HTML version of the page, or you
believe there is a better or more up-to-date source for the page, or
you have corrections or improvements to the information in this
COLOPHON (which is not part of the original manual page), send a mail
Performance Co-Pilot PCP PMPARSEINTERVAL(3)