version 1.1.2.4, 2006/07/28 19:02:47
|
version 1.1.2.5, 2006/07/28 20:46:41
|
|
|
#include "IDFactory.h" | #include "IDFactory.h" |
#include "TSDKey.h" | #include "TSDKey.h" |
| |
|
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
|
# include <sys/timeb.h> |
|
#endif |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
void Threads::sleep(int msec) | void Threads::sleep(int msec) |
|
|
| |
#elif defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) | #elif defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
| |
if (ms == 0) |
if (msec == 0) |
{ | { |
Sleep(0); | Sleep(0); |
return; | return; |
|
|
| |
struct _timeb end, now; | struct _timeb end, now; |
_ftime( &end ); | _ftime( &end ); |
end.time += (ms / 1000); |
end.time += (msec / 1000); |
ms -= (ms / 1000); |
msec -= (msec / 1000); |
end.millitm += ms; |
end.millitm += msec; |
| |
do | do |
{ | { |