wstimeval (C Function)

is a WSTP type used for storing time arguments.


  • The time value is measured in seconds and microseconds.
  • The seconds value can be accessed using the tv_sec specifier. The microseconds value can be accessed using the tv_usec specifier.
  • wstimeval is declared in the WSTP header file wstp.h.


Basic Examples  (1)

Set the value of the seconds and microseconds for the time variable:

wstimeval tm;
tm.tv_sec = 10;
tm.tv_usec = 0;