Struct:timeval

Jump to: navigation, search

This structure definition is intended to match the Unix® structure of the same name, although the field types may differ slightly. If your compiler or kernel already defines timeval in sys/types.h, you can define TM_BSD_TYPES_CLASH in your trsystem.h to avoid a conflict.

#include <trsocket.h>
 
#ifndef TM_BSD_TYPES_CLASH
/* This structure is usually defined by the compiler or kernel in time.h */
struct timeval
{
    long tv_sec;    /* Number of seconds */
    long tv_usec;   /* Number of microseconds */
};
#endif /* TM_BSD_TYPES_CLASH */