return FAILED for win

This commit is contained in:
Robin Müller 2023-03-04 11:32:32 +01:00
parent bbf0d7a0d2
commit a39f1271ec
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -50,6 +50,7 @@ ReturnValue_t Clock::setClock(const timeval* time) {
ReturnValue_t Clock::getClockMonotonic(timeval* time) { ReturnValue_t Clock::getClockMonotonic(timeval* time) {
#if defined(PLATFORM_WIN) #if defined(PLATFORM_WIN)
// TODO: Implement with std::chrono::steady_clock // TODO: Implement with std::chrono::steady_clock
return returnvalue::FAILED;
#elif defined(PLATFORM_UNIX) #elif defined(PLATFORM_UNIX)
timespec timeMonotonic; timespec timeMonotonic;
int status = clock_gettime(CLOCK_MONOTONIC_RAW, &timeMonotonic); int status = clock_gettime(CLOCK_MONOTONIC_RAW, &timeMonotonic);