mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
- prefer clock_getttime() over gettimeofday() if available
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
This commit is contained in:
committed by
Guenter Obiltschnig
parent
7b5e974b05
commit
f89bea4411
@@ -226,7 +226,7 @@ void Timestamp::update()
|
||||
ts.QuadPart -= epoch.QuadPart;
|
||||
_ts = ts.QuadPart/10;
|
||||
|
||||
#elif defined(POCO_VXWORKS)
|
||||
#elif (defined(_POSIX_TIMERS) && defined(CLOCK_REALTIME)) || defined(POCO_VXWORKS) || defined(__QNX__)
|
||||
|
||||
struct timespec ts;
|
||||
if (clock_gettime(CLOCK_REALTIME, &ts))
|
||||
|
||||
Reference in New Issue
Block a user