23 #include <coil/TimeValue.h> 25 #pragma warning( disable : 4244 ) 26 #pragma warning( disable : 4312 ) 28 #include <ace/OS_NS_sys_time.h> 29 #include <ace/OS_NS_unistd.h> 30 #include <ace/OS_NS_sys_select.h> 32 #pragma warning( default : 4244 ) 33 #pragma warning( default : 4312 ) 35 #include <coil/TimeValue.h> 40 inline unsigned int sleep(
unsigned int seconds)
47 ACE_Time_Value tv(interval.
sec(), interval.
usec());
48 return ACE_OS::select(0, 0, 0, 0, &tv);
53 ACE_Time_Value tv(0, usec);
54 return ACE_OS::select(0, 0, 0, 0, &tv);
62 tv->tv_sec =
static_cast<long int>(atv.sec());
63 tv->tv_usec =
static_cast<long int>(atv.usec());
71 return TimeValue(static_cast<long int>(atv.sec()),
72 static_cast<long int>(atv.usec()));
unsigned int sleep(unsigned int seconds)
Stop a processing at specified second time.
int sleep(TimeValue &interval)
int gettimeofday(struct timeval *tv, struct timezone *tz)
Get the time and timezone.
long int sec() const
Get value of second time scale.
long int usec() const
Get value of micro second time scale.
int settimeofday(const struct timeval *tv, const struct timezone *tz)
Set the time and timezone.
TimeValue gettimeofday()
Get the time.
int usleep(useconds_t usec)
Stop a processing at specified micro second time.
Common Object Interface Layer.