ntimeradd Macro
Purpose
Computes the sum of nanotimers.
Syntax
#include<sys/time.h>
ntimeradd(tvp, svp, rvp)
struct timestruc_t tvp, svp, rvp;
Note: The
ntimeradd
macro asserts for invalid values of parameters. The following
header files need to be included for definition of assert: - <assert.h>
- For user applications.
- <sys/syspest.h>
- For kernel extensions.
Description
The ntimeradd macro is used to compute the sum of nanotimers. It adds the nanotimer values that are stored in the tvp and svp variables and stores the result in the rvp variable.
Parameters
The tvp , svp, and rvp variables are of
type struct timestruc_t
structure, that is defined in the
sys/time.h header file.