24 #include <sys/types.h> 54 inline unsigned int sleep(
unsigned int seconds)
83 tv.tv_sec = interval.
sec();
84 tv.tv_usec = interval.
usec();
85 return ::select(0, 0, 0, 0, &tv);
189 inline int settimeofday(
const struct timeval *tv ,
const struct timezone *tz)
197 #endif // COIL_TIME_H long int sec() const
Get value of second time scale.
Definition: TimeValue.h:110
unsigned int sleep(unsigned int seconds)
Stop a processing at specified second time.
Definition: Time.h:54
TimeValue class.
Definition: TimeValue.h:40
int gettimeofday(struct timeval *tv, struct timezone *tz)
Get the time and timezone.
Definition: Time.h:137
int sleep(TimeValue interval)
Stop a processing at specified second time.
Definition: Time.h:80
int settimeofday(const struct timeval *tv, const struct timezone *tz)
Set the time and timezone.
Definition: Time.h:189
long int usec() const
Get value of micro second time scale.
Definition: TimeValue.h:131
TimeValue gettimeofday()
Get the time.
Definition: Time.h:159
int usleep(useconds_t usec)
Stop a processing at specified micro second time.
Definition: Time.h:109
Common Object Interface Layer.
Definition: Affinity.h:28